]> git.lyx.org Git - features.git/commitdiff
#6694 - reset line spacing to single if no custom size is defined
authorPavel Sanda <sanda@lyx.org>
Fri, 14 May 2010 19:12:59 +0000 (19:12 +0000)
committerPavel Sanda <sanda@lyx.org>
Fri, 14 May 2010 19:12:59 +0000 (19:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34405 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index 65f07914a3472dc7f26c77da2a8e9efe0b19a4f5..e06431fbe3e6ce66fa853207fe9ff4a35b1ede34 100644 (file)
@@ -2163,10 +2163,14 @@ void GuiDocument::applyView()
        case 2:
                bp_.spacing().set(Spacing::Double);
                break;
-       case 3:
-               bp_.spacing().set(Spacing::Other,
-                       widgetToDoubleStr(textLayoutModule->lspacingLE));
+       case 3: {
+               string s = widgetToDoubleStr(textLayoutModule->lspacingLE);
+               if (s.empty())
+                       bp_.spacing().set(Spacing::Single);
+               else
+                       bp_.spacing().set(Spacing::Other, s);
                break;
+               }
        }
 
        if (textLayoutModule->twoColumnCB->isChecked())