From: Juergen Spitzmueller Date: Sat, 27 Jan 2018 11:26:01 +0000 (+0100) Subject: Use proper localization chain for Box special width/height X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3963 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e2160ec960de2f48e5b61dfab339902426d075f8;p=features.git Use proper localization chain for Box special width/height Fixes: #11000 --- diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index 5d77aff215..6a991b5df5 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -439,7 +439,7 @@ docstring GuiBox::dialogToParams() const if (ids_spec_.contains(unit) && !isValidLength(fromqstr(value))) { params.special = fromqstr(unit); // Note: the unit is simply ignored in this case - params.width = Length(value.toDouble(), Length::IN); + params.width = Length(widgetToDouble(widthED), Length::IN); } else { params.special = "none"; // we must specify a valid length in this case @@ -465,7 +465,7 @@ docstring GuiBox::dialogToParams() const if (ids_spec_.contains(unit) && !isValidLength(fromqstr(value))) { params.height_special = fromqstr(unit); // Note: the unit is simply ignored in this case - params.height = Length(value.toDouble(), Length::IN); + params.height = Length(widgetToDouble(heightED), Length::IN); } else { params.height_special = "none"; params.height =