From 92ac678715b07ff7c7adc4b32674382b5e224a44 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 9 May 2012 21:46:37 +0200 Subject: [PATCH] Fix bug #8152: Uneditable long rows for 'Right addresses' As long as leftMargin() is not correctly implemented for MARGIN_RIGHT_ADDRESS_BOX, we should also not do this here. Otherwise, long rows will be painted off the screen and will not be editable. --- src/TextMetrics.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index a60d4de31b..96da42d79f 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -798,8 +798,13 @@ pos_type TextMetrics::rowBreakPoint(int width, pit_type const pit, Layout const & layout = par.layout(); +#if 0 + //FIXME: As long as leftMargin() is not correctly implemented for + // MARGIN_RIGHT_ADDRESS_BOX, we should also not do this here. + // Otherwise, long rows will be painted off the screen. if (layout.margintype == MARGIN_RIGHT_ADDRESS_BOX) return addressBreakPoint(pos, par); +#endif pos_type const body_pos = par.beginOfBody(); -- 2.39.5