Commit 2da3a4ab authored by Jochen Becher's avatar Jochen Becher

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

Change-Id: Ifcdd5010369a71649a5f34c72c81ec9a30556bc7
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent ffb5dc75
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment