X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FCommandInset.cpp;h=344c570323a32aef7156509539c2574617d242b0;hb=5d7dae9e382f0b01800f5652e673e12fa6923740;hp=0cf041c23ea7e59b2ec9fc62cf30690fca02cda5;hpb=43f6b1672b5ef442b4e9b7e4f7ea76dc14ac4fc8;p=lyx.git diff --git a/src/mathed/CommandInset.cpp b/src/mathed/CommandInset.cpp index 0cf041c23e..344c570323 100644 --- a/src/mathed/CommandInset.cpp +++ b/src/mathed/CommandInset.cpp @@ -40,11 +40,9 @@ void CommandInset::metrics(MetricsInfo & mi, Dimension & dim) const { if (!set_label_) { set_label_ = true; - button_.update(screenLabel(), true); + button_.update(screenLabel(), true, false); } button_.metrics(mi, dim); - // Cache the inset dimension. - setDimCache(mi, dim); } @@ -58,7 +56,6 @@ Inset * CommandInset::editXY(Cursor & cur, int /*x*/, int /*y*/) void CommandInset::draw(PainterInfo & pi, int x, int y) const { button_.draw(pi, x, y); - setPosCache(pi, x, y); }