X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInfo.cpp;h=46d656c817c9ad9d78a221f321867717e368c566;hb=eb294eadb5e7f22880da399ae082f74567bbfc4e;hp=f2d3b93ad8edd7e4f76432abfa80cae0d9166eb1;hpb=17e60e2e8559e5b702189c82a5a746b9f41cd219;p=lyx.git diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index f2d3b93ad8..46d656c817 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -467,7 +467,7 @@ string InsetInfoParams::infoType() const InsetInfo::InsetInfo(Buffer * buf, string const & info) - : InsetCollapsible(buf), initialized_(false), dirty_(true) + : InsetCollapsible(buf), initialized_(false) { params_.type = InsetInfoParams::UNKNOWN_INFO; params_.force_ltr = false; @@ -779,19 +779,15 @@ void InsetInfo::metrics(MetricsInfo & mi, Dimension & dim) const { const_cast(this)->build(); InsetCollapsible::metrics(mi, dim); - dirty_ = false; } void InsetInfo::draw(PainterInfo & pi, int x, int y) const { - if (dirty_) - return; Changer chg = changeVar(lyxrc.mark_foreign_language, false); InsetCollapsible::draw(pi, x, y); } - void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted) { @@ -1239,8 +1235,6 @@ void InsetInfo::build() } } - // indicate that metrics are not usable anymore - dirty_ = true; // Just to do something with that string LYXERR(Debug::INFO, "info inset text: " << gui); }