From: Jean-Marc Lasgouttes Date: Tue, 5 Apr 2016 08:43:16 +0000 (+0200) Subject: Avoid narrow boxes when using \width as box width unit X-Git-Tag: 2.3.0alpha1~1657 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aef78c821f0efbece98490a765c57b021cef0d8b;p=features.git Avoid narrow boxes when using \width as box width unit When the box has a special width, one should not consider that as a fixed width. Otherwise, due to implementation quirks, the width will be set on screen as 1 inch. A better solution would be to actually set the width by taking in account the contents width, height ans total height. This is not very difficult, but I do not know whether it would workout well in the work area. Fixes bug #10048. --- diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index eee16fe647..ea18afa0d9 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -169,7 +169,7 @@ void InsetBox::setButtonLabel() bool InsetBox::hasFixedWidth() const { - return !params_.width.empty(); + return !params_.width.empty() && params_.special == "none"; }