]> git.lyx.org Git - features.git/commitdiff
GuiBox.cpp: make a logic setting more clear
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 12 May 2015 23:16:35 +0000 (01:16 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 12 May 2015 23:16:35 +0000 (01:16 +0200)
src/frontends/qt4/GuiBox.cpp

index ac5856ded80af8232672a2ba18412b914d42cda6..2463dfa8ca539739b0253cd694cbd8ec97d6370e 100644 (file)
@@ -439,8 +439,7 @@ bool GuiBox::checkWidgets(bool readonly) const
                heightCB->setEnabled(ibox);
                // the width can only be selected for makebox or framebox
                widthCB->setEnabled(itype == "makebox"
-                       || (outer == "Boxed" && itype == "none")
-                       && !pagebreakCB->isChecked());
+                       || (outer == "Boxed" && itype == "none" && !pagebreakCB->isChecked()));
                // except for Frameless and Boxed, the width cannot be specified if
                // there is no inner box
                bool const width_enabled =