]> git.lyx.org Git - features.git/blobdiff - src/vspace.C
the buffer patch, moved Buffer::text to BufferView, moved Buffer::update(short) to...
[features.git] / src / vspace.C
index be093a679f046593085239bb76b2688e9d22bf0f..f80632bc546ba3475a373a465b812be94325ec00 100644 (file)
@@ -492,7 +492,11 @@ string VSpace::asLatexCommand() const
 int VSpace::inPixels() const
 {
        // Height of a normal line in pixels (zoom factor considered)
+#ifdef MOVE_TEXT
+       int height = current_view->text->DefaultHeight(); // [pixels]
+#else
        int height = current_view->buffer()->text->DefaultHeight(); // [pixels]
+#endif
 
        // Zoom factor specified by user in percent
        float const zoom = lyxrc->zoom / 100.0; // [percent]