X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVSpace.cpp;h=971ac96a94e64053ef66d1b0271a151c8c45900e;hb=79cf3f5ec1088e7de988e889247ec300d42fb70b;hp=aad2a6e79a5df4b4a0621407151c8d84694f96db;hpb=1b1f8dd235ba8e168348cd23c824063f2595a0c5;p=lyx.git diff --git a/src/VSpace.cpp b/src/VSpace.cpp index aad2a6e79a..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_) { @@ -212,13 +212,13 @@ int VSpace::inPixels(BufferView const & bv) const case DEFSKIP: return bv.buffer().params().getDefSkip().inPixels(bv); - // This is how the skips are normally defined by LateX. + // This is how the skips are normally defined by LaTeX. // But there should be some way to change this per document. case SMALLSKIP: - return default_height / 4; + return int(default_height / 4); case MEDSKIP: - return default_height / 2; + return int(default_height / 2); case BIGSKIP: return default_height; @@ -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);