ModelEditor: Fix crash pressing shift on a size-locked object

Change-Id: Ifcdd5010369a71649a5f34c72c81ec9a30556bc7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Jochen Becher
2017-07-16 19:56:02 +02:00
parent ffb5dc756a
commit 2da3a4ab43

View File

@@ -210,6 +210,8 @@ void ObjectItem::setFocusSelected(bool focusSelected)
ILatchable::Action ObjectItem::horizontalLatchAction() const
{
if (!m_selectionMarker)
return Move;
switch (m_selectionMarker->activeHandle()) {
case RectangularSelectionItem::HandleTopLeft:
case RectangularSelectionItem::HandleLeft:
@@ -232,6 +234,8 @@ ILatchable::Action ObjectItem::horizontalLatchAction() const
ILatchable::Action ObjectItem::verticalLatchAction() const
{
if (!m_selectionMarker)
return Move;
switch (m_selectionMarker->activeHandle()) {
case RectangularSelectionItem::HandleTopLeft:
case RectangularSelectionItem::HandleTop: