0
0
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:
fralx
2017-04-10 11:14:06 +03:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

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