X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDots.cpp;h=8c4bd8374b3f35b84cdf06d44f23436c39278ed7;hb=5fdc577badb1cb133d6a0dc7d831bb1f82576adb;hp=67ed8298980ff421d2c2ec9d7571d540047588da;hpb=0a93c9b70f861b12e27239167d9ba59ddd6ece1e;p=lyx.git diff --git a/src/mathed/InsetMathDots.cpp b/src/mathed/InsetMathDots.cpp index 67ed829898..8c4bd8374b 100644 --- a/src/mathed/InsetMathDots.cpp +++ b/src/mathed/InsetMathDots.cpp @@ -13,6 +13,7 @@ #include "InsetMathDots.h" +#include "Dimension.h" #include "LaTeXFeatures.h" #include "MathStream.h" #include "MathSupport.h" @@ -25,7 +26,7 @@ namespace lyx { InsetMathDots::InsetMathDots(latexkeys const * key) - : key_(key) + : dh_(0), key_(key) {} @@ -53,12 +54,12 @@ void InsetMathDots::metrics(MetricsInfo & mi, Dimension & dim) const } -void InsetMathDots::draw(PainterInfo & pain, int x, int y) const +void InsetMathDots::draw(PainterInfo & pi, int x, int y) const { - Dimension const dim = dimension(*pain.base.bv); + Dimension const dim = dimension(*pi.base.bv); if (key_->name == "adots" || key_->name == "iddots") --y; - mathed_draw_deco(pain, x + 2, y - dh_, dim.width() - 2, dim.ascent(), + mathed_draw_deco(pi, x + 2, y - dh_, dim.width() - 2, dim.ascent(), key_->name); if (key_->name == "vdots" || key_->name == "ddots" || key_->name == "adots" || key_->name == "iddots") ++x; @@ -66,9 +67,8 @@ void InsetMathDots::draw(PainterInfo & pain, int x, int y) const ++y; else if (key_->name != "vdots") --y; - mathed_draw_deco(pain, x + 2, y - dh_, dim.width() - 2, dim.ascent(), + mathed_draw_deco(pi, x + 2, y - dh_, dim.width() - 2, dim.ascent(), key_->name); - setPosCache(pain, x, y); }