X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetLine.cpp;h=dc75aa42516a0e8b6597864d5d09e37f5a2cadd3;hb=4859a1f6bb834aa5efa4a32e7619cc7a3347dc0c;hp=087dba7df2cc8a8fa429d4aaae2f4fec39d2f7dd;hpb=699a6db9fa168f91458a17d4f30c124e52a38054;p=lyx.git diff --git a/src/insets/InsetLine.cpp b/src/insets/InsetLine.cpp index 087dba7df2..dc75aa4251 100644 --- a/src/insets/InsetLine.cpp +++ b/src/insets/InsetLine.cpp @@ -25,6 +25,7 @@ #include "MetricsInfo.h" #include "OutputParams.h" #include "output_xhtml.h" +#include "texstream.h" #include "Text.h" #include "frontends/FontMetrics.h" @@ -131,17 +132,6 @@ void InsetLine::metrics(MetricsInfo & mi, Dimension & dim) const dim.asc = max(fm.maxAscent(), offset_ + height_); dim.des = max(fm.maxDescent(), - offset_); - - // Cache the inset dimension - setDimCache(mi, dim); -} - - -Dimension const InsetLine::dimension(BufferView const & bv) const -{ - // We cannot use InsetCommand::dimension() as this returns the dimension - // of the button, which is not used here. - return Inset::dimension(bv); }