]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.cpp
Account for old versions of Pygments
[lyx.git] / src / mathed / CommandInset.cpp
index 0cf041c23ea7e59b2ec9fc62cf30690fca02cda5..344c570323a32aef7156509539c2574617d242b0 100644 (file)
@@ -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);
 }