0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-27 02:09:09 +03:00

Fixes a few instances where nullptrs might be dereferenced

This commit is contained in:
Andy Maloney
2017-04-08 09:35:09 -04:00
parent 010db431b1
commit 7ebc42c514
3 changed files with 7 additions and 4 deletions

View File

@@ -2169,7 +2169,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);
}
}