]> 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 9d35ec29f2155adbaa441817e7525db92d1a57d1..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;
 }
 
 
@@ -594,7 +594,7 @@ int VSpace::inPixels(int default_height, int default_skip, int default_width) co
                // is the same as on paper.
 
                // we don't care about sign of value, we
-               // can't display negative anyway
+               // display negative space with text too
                result = 0.0;
                value = len.value();
                int val_sign = value < 0.0 ? -1 : 1;