X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVSpace.cpp;h=971ac96a94e64053ef66d1b0271a151c8c45900e;hb=bf2bf2eaedadf39a6398db624c8b6c52099ca31d;hp=342105727f849ad12049763529d034437660b423;hpb=ccfbfdaf2b8a96e4f0ad43b693ecd097319f8e88;p=lyx.git diff --git a/src/VSpace.cpp b/src/VSpace.cpp index 342105727f..971ac96a94 100644 --- a/src/VSpace.cpp +++ b/src/VSpace.cpp @@ -183,7 +183,7 @@ docstring const VSpace::asGUIName() const } -string VSpace::asHTMLLength() const +string VSpace::asHTMLLength() const { string result; switch (kind_) { @@ -228,7 +228,7 @@ int VSpace::inPixels(BufferView const & bv) const return 3 * default_height; case LENGTH: - return len_.len().inPixels(bv.workWidth()); + return bv.inPixels(len_.len()); default: LATTEST(false);