]> git.lyx.org Git - features.git/commitdiff
A PainterInfo variable should be named `pi'.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Aug 2016 12:29:58 +0000 (14:29 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Aug 2016 12:31:20 +0000 (14:31 +0200)
src/mathed/InsetMathDots.cpp

index b44d391512492ef9f5451381336a3ae36e4f2bd7..d13cdd902f87e724656ce7c57265077586930157 100644 (file)
@@ -53,12 +53,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 +66,9 @@ 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);
+       setPosCache(pi, x, y);
 }