From 93481d2d5631e012af2b3fd4bd987f1f9c95c058 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 27 Nov 2006 10:49:24 +0000 Subject: [PATCH] Editing Optimization. This commits improves considerably math editing in Windows and solves one crash when viewing the moebius figure in UserGuide.lyx. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16071 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.C | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/rowpainter.C b/src/rowpainter.C index 4290ffbf84..6074cd07b9 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -1000,22 +1000,6 @@ void paintText(BufferView & bv, yy += par.descent(); } - // Cache one paragraph above and one below - // Note MV: this cannot be suppressed even for singlepar. - // Try viewing the User Guide Mobius figure - - if (vi.p1 > 0) { - text.redoParagraph(bv, vi.p1 - 1); - bv.coordCache().parPos()[&text][vi.p1 - 1] = - Point(0, vi.y1 - text.getPar(vi.p1 - 1).descent()); - } - - if (vi.p2 < pit_type(text.paragraphs().size()) - 1) { - text.redoParagraph(bv, vi.p2 + 1); - bv.coordCache().parPos()[&text][vi.p2 + 1] = - Point(0, vi.y2 + text.getPar(vi.p2 + 1).ascent()); - } - // and grey out above (should not happen later) // lyxerr << "par ascent: " << text.getPar(vi.p1).ascent() << endl; if (vi.y1 > 0 && !vi.singlepar) -- 2.39.2