]> git.lyx.org Git - lyx.git/blobdiff - src/vspace.C
Fixed cut&paste bugs and added freespacing for ERT Insets.
[lyx.git] / src / vspace.C
index 1d74f771035c5d1e4f56c969ea143ad4af08c561..d76439b000bc38c73cb0ede32def9fb3b71e6ad5 100644 (file)
@@ -361,16 +361,16 @@ LyXGlueLength::LyXGlueLength (string const & data)
 {
        LyXGlueLength tmp(0.0, PT);
 
-       if (!isValidGlueLength (data, &tmp))
-               return; // should raise an exception
-       else {
-               val = tmp.val;
-               uni = tmp.uni;
-               plus_val = tmp.plus_val;
-               plus_uni = tmp.plus_uni;
-               minus_val = tmp.minus_val;
-               minus_uni = tmp.minus_uni;
-       }
+       // we should really raise exception here
+       if (!isValidGlueLength(data, &tmp))
+               ;
+       val = tmp.val;
+       uni = tmp.uni;
+       plus_val = tmp.plus_val;
+       plus_uni = tmp.plus_uni;
+       minus_val = tmp.minus_val;
+       minus_uni = tmp.minus_uni;
 }