mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
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.
(cherry picked from commit 92ac678715
)
This commit is contained in:
parent
c9cbd538b8
commit
86d8e5cfc5
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user