mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-26 17:59:08 +03:00
Merge pull request #65 from asmaloney/fix-potential-nullptr-use
Fixes a few instances where nullptrs might be dereferenced
This commit is contained in:
@@ -2171,7 +2171,7 @@ void PropertyItemAlignChangedCommand::undoIt()
|
||||
if (reportItem && (reportItem->property(m_propertyName.toLatin1()) != m_oldValue)) {
|
||||
reportItem->setProperty(m_propertyName.toLatin1(), m_oldValue);
|
||||
}
|
||||
if (m_oldValue == BaseDesignIntf::DesignedItemAlign){
|
||||
if (reportItem && (m_oldValue == BaseDesignIntf::DesignedItemAlign)){
|
||||
reportItem->setPos(m_savedPos);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user