]> git.lyx.org Git - features.git/commitdiff
GuiBox.cpp: assure that the parameters are not empty
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 15 May 2015 01:51:11 +0000 (03:51 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 15 May 2015 01:51:11 +0000 (03:51 +0200)
src/frontends/qt4/GuiBox.cpp

index 2463dfa8ca539739b0253cd694cbd8ec97d6370e..ccf6cd76a742da0f141290f1ca578602d8ee1a76 100644 (file)
@@ -26,8 +26,8 @@
 #include "support/foreach.h"
 #include "support/lstrings.h"
 
-#include <QPushButton>
 #include <QLineEdit>
+#include <QPushButton>
 
 #ifdef IN
 #undef IN
@@ -390,15 +390,15 @@ docstring GuiBox::dialogToParams() const
        if (thicknessED->isEnabled())
                params.thickness = Length(widgetsToLength(thicknessED, thicknessUnitsLC));
        else
-               params.thickness = Length();
+               params.thickness = Length("0.4pt");
        if (separationED->isEnabled())
                params.separation = Length(widgetsToLength(separationED, separationUnitsLC));
        else
-               params.separation = Length();
+               params.separation = Length("3pt");
        if (separationED->isEnabled())
                params.shadowsize = Length(widgetsToLength(shadowsizeED, shadowsizeUnitsLC));
        else
-               params.shadowsize = Length();
+               params.shadowsize = Length("4pt");
 
        return from_ascii(InsetBox::params2string(params));
 }