From 5321280609540d3705570f14a301d4f70a064cb7 Mon Sep 17 00:00:00 2001 From: octaeder <102688820+octaeder@users.noreply.github.com> Date: Sat, 10 Feb 2024 17:02:11 +0100 Subject: [PATCH] insertGraphicsDlg: prevent elements from moving (#3509) --- src/insertgraphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insertgraphics.cpp b/src/insertgraphics.cpp index f44f0a887b..98f14bb49d 100644 --- a/src/insertgraphics.cpp +++ b/src/insertgraphics.cpp @@ -480,13 +480,13 @@ void InsertGraphics::updateLabel(const QString &fname) void InsertGraphics::togglePlacementCheckboxes(bool forceHide) { if (ui.placementCheckboxes->isVisible() || forceHide) { - ui.placementCheckboxes->hide(); ui.pbPlaceExpand->setIcon(getRealIcon("down-arrow-circle-silver")); - resize(width(), height() - (ui.placementCheckboxes->height() + ui.gridLayout->verticalSpacing())); + resize(width(), height() - (ui.placementCheckboxes->height() - ui.gridLayout->verticalSpacing())); + ui.placementCheckboxes->hide(); } else { - resize(width(), height() + (ui.placementCheckboxes->height() + ui.gridLayout->verticalSpacing())); ui.pbPlaceExpand->setIcon(getRealIcon("up-arrow-circle-silver")); ui.placementCheckboxes->show(); + resize(width(), height() + (ui.placementCheckboxes->height() - ui.gridLayout->verticalSpacing())); } }