]> 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>
Thu, 10 May 2012 08:46:32 +0000 (10:46 +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.

src/TextMetrics.cpp

index a60d4de31bb26d13b3bdf92b00fdee9e8a7cbc79..96da42d79fbd50698588cf7667a6af9487096ea1 100644 (file)
@@ -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();