From 23b99d315b536c13e0346823d68985feb741de3e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 7 Nov 2006 15:24:34 +0000 Subject: [PATCH] * InsetText::Wide() -> wide() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15780 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insettext.C | 6 +++--- src/insets/insettext.h | 2 +- src/rowpainter.C | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/insets/insettext.C b/src/insets/insettext.C index d8c7718f0b..0b843353a0 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -193,7 +193,7 @@ void InsetText::draw(PainterInfo & pi, int x, int y) const int const w = text_.width() + 2 * border_; int const a = text_.ascent() + border_; int const h = a + text_.descent() + border_; - pi.pain.rectangle(x, y - a, (Wide() ? text_.maxwidth_ : w), h, + pi.pain.rectangle(x, y - a, (wide() ? text_.maxwidth_ : w), h, frameColor()); } } @@ -204,7 +204,7 @@ void InsetText::drawSelection(PainterInfo & pi, int x, int y) const int const w = text_.width() + 2 * border_; int const a = text_.ascent() + border_; int const h = a + text_.descent() + border_; - pi.pain.fillRectangle(x, y - a, (Wide() ? text_.maxwidth_ : w), h, + pi.pain.fillRectangle(x, y - a, (wide() ? text_.maxwidth_ : w), h, backgroundColor()); text_.drawSelection(pi, x, y); } @@ -214,7 +214,7 @@ bool InsetText::covers(BufferView const & bv, int x, int y) const { return bv.coordCache().getInsets().has(this) && x >= xo(bv) - && x <= xo(bv) + width() + (Wide() ? text_.maxwidth_ : 0) + && x <= xo(bv) + width() + (wide() ? text_.maxwidth_ : 0) && y >= yo(bv) - ascent() && y <= yo(bv) + descent(); } diff --git a/src/insets/insettext.h b/src/insets/insettext.h index d11bc97c88..67128697d7 100644 --- a/src/insets/insettext.h +++ b/src/insets/insettext.h @@ -133,7 +133,7 @@ public: /// InsetText(InsetText const &); /// - bool Wide() const { return wide_inset_; } + bool wide() const { return wide_inset_; } /// void setWide(bool wide_inset) { wide_inset_ = wide_inset; } diff --git a/src/rowpainter.C b/src/rowpainter.C index 6d3707c398..e357550411 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -180,7 +180,7 @@ void RowPainter::paintInset(pos_type const pos, LyXFont const & font) InsetText const * const in = inset->asTextInset(); // non-wide insets are painted completely. Recursive bool tmp = refreshInside; - if (!in || !in->Wide()) { + if (!in || !in->wide()) { refreshInside = true; lyxerr[Debug::PAINTING] << endl << "Paint inset fully" << endl; } -- 2.39.2