]> git.lyx.org Git - lyx.git/blobdiff - src/VSpace.cpp
Rename BufferView::updateScrollbar to show what does
[lyx.git] / src / VSpace.cpp
index a2d4a3d398e408d3c106ae9d06c7c0b68930a4db..66e3a6c7c91753a435b39b1b877dbcc564c34d13 100644 (file)
 #include "BufferParams.h"
 #include "BufferView.h"
 #include "support/gettext.h"
-#include "Length.h"
-#include "Text.h"
 #include "TextMetrics.h" // for defaultRowHeight()
 
 #include "support/convert.h"
+#include "support/Length.h"
 #include "support/lstrings.h"
 
 #include "support/lassert.h"
@@ -264,10 +263,10 @@ int VSpace::inPixels(BufferView const & bv) const
        // This is how the skips are normally defined by LaTeX.
        // But there should be some way to change this per document.
        case SMALLSKIP:
-               return int(default_height / 4);
+               return default_height / 4;
 
        case MEDSKIP:
-               return int(default_height / 2);
+               return default_height / 2;
 
        case BIGSKIP:
                return default_height;
@@ -277,7 +276,7 @@ int VSpace::inPixels(BufferView const & bv) const
                return 3 * default_height;
 
        case HALFLINE:
-               return int(default_height / 2);
+               return default_height / 2;
 
        case FULLLINE:
                return default_height;