]> git.lyx.org Git - features.git/commitdiff
Fix bug #8152: Uneditable long rows for 'Right addresses'
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 9 May 2012 19:46:37 +0000 (21:46 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 13 May 2012 18:51:37 +0000 (20:51 +0200)
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.
(cherry picked from commit 92ac678715b07ff7c7adc4b32674382b5e224a44)

src/TextMetrics.cpp

index d9800e379ad34f96203085d67a01b254dda41027..e764da59765b532be8651ab846f4131a21d2a17c 100644 (file)
@@ -793,8 +793,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();