diff --git a/src/designer/src/components/formeditor/widgetselection.cpp b/src/designer/src/components/formeditor/widgetselection.cpp index 70a75f54f72eca846f55686130622e36b5d2dbc1..eda77e213110016b7914784047778875cd49c667 100644 --- a/src/designer/src/components/formeditor/widgetselection.cpp +++ b/src/designer/src/components/formeditor/widgetselection.cpp @@ -477,7 +477,7 @@ void WidgetHandle::changeGridLayoutItemSpan() break; case WidgetHandle::Bottom: { - if (pt.y() > 0 && info.width() > 1) { + if (pt.y() > 0 && info.height() > 1) { cmd = new ChangeLayoutItemGeometry(m_formWindow); cmd->init(m_widget, info.y(), info.x(), info.height() - 1, info.width()); } else if (pt.y() < 0 && bottom != -1 && grid->itemAt(bottom)->spacerItem()) {