]> git.lyx.org Git - lyx.git/blobdiff - src/vspace.C
partial framebox support
[lyx.git] / src / vspace.C
index 1444aa7de8da6f120a0044ced3f0e3a1c919e89d..9f86ce86deddf882fb72c99c2c9e9ea5ac2f1fd5 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "vspace.h"
 #include "lengthcommon.h"
-#include "lyx_main.h"
 #include "buffer.h"
 #include "lyxrc.h"
 #include "lyxtext.h"
@@ -350,7 +349,7 @@ VSpace::VSpace(string const & data)
 
        string::size_type const length = input.length();
 
-       if (length > 1 && input[length-1] == '*') {
+       if (length > 1 && input[length - 1] == '*') {
                keep_ = true;
                input.erase(length - 1);
        }
@@ -470,7 +469,7 @@ string const VSpace::asLatexCommand(BufferParams const & params) const
 
 
 
-int VSpace::inPixels(BufferView * bv) const
+int VSpace::inPixels(BufferView const * bv) const
 {
        // Height of a normal line in pixels (zoom factor considered)
        int const default_height = bv->text->defaultHeight(); // [pixels]