forked from qt-creator/qt-creator
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:
@@ -210,6 +210,8 @@ void ObjectItem::setFocusSelected(bool focusSelected)
|
|||||||
|
|
||||||
ILatchable::Action ObjectItem::horizontalLatchAction() const
|
ILatchable::Action ObjectItem::horizontalLatchAction() const
|
||||||
{
|
{
|
||||||
|
if (!m_selectionMarker)
|
||||||
|
return Move;
|
||||||
switch (m_selectionMarker->activeHandle()) {
|
switch (m_selectionMarker->activeHandle()) {
|
||||||
case RectangularSelectionItem::HandleTopLeft:
|
case RectangularSelectionItem::HandleTopLeft:
|
||||||
case RectangularSelectionItem::HandleLeft:
|
case RectangularSelectionItem::HandleLeft:
|
||||||
@@ -232,6 +234,8 @@ ILatchable::Action ObjectItem::horizontalLatchAction() const
|
|||||||
|
|
||||||
ILatchable::Action ObjectItem::verticalLatchAction() const
|
ILatchable::Action ObjectItem::verticalLatchAction() const
|
||||||
{
|
{
|
||||||
|
if (!m_selectionMarker)
|
||||||
|
return Move;
|
||||||
switch (m_selectionMarker->activeHandle()) {
|
switch (m_selectionMarker->activeHandle()) {
|
||||||
case RectangularSelectionItem::HandleTopLeft:
|
case RectangularSelectionItem::HandleTopLeft:
|
||||||
case RectangularSelectionItem::HandleTop:
|
case RectangularSelectionItem::HandleTop:
|
||||||
|
Reference in New Issue
Block a user