summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2010-10-26 22:50:08 +0200
committerThorsten Behrens <tbehrens@novell.com>2010-10-26 22:50:08 +0200
commit045822069090d8a37aab656e2875f4d9437e133f (patch)
tree094d9a398d3d8be6e7fca486c66b0d7e1f3ee0f5
parent1bd461e83dfe4f8e2c43a4d831d717eba573c54c (diff)
Fix impress ruler behaviour
With 3.0, Impress numbering was modified because of the odf1.2 changes in list level handling; we differ in the way we consider paragraphs to belong to the 'same' numbering group, compared to ppt. now, as long as the para has the same outline level (and no 'restart numbering' flag), it is considered to belong to the same numbering group, i.e. numbering will mono- tonically increase. Compares favorable to PPT. Additionally, fixed a repaint bug that prevented following paragraph's numbers to change, when certain modifications were made on the current one. Applies patches/dev300/sd-ruler-fix.diff
-rw-r--r--editeng/source/outliner/outlvw.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index e21568c553..57a13a0051 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -554,7 +554,9 @@ void OutlinerView::SetAttribs( const SfxItemSet& rAttrs )
for( USHORT nPara= aSel.nStartPara; nPara <= aSel.nEndPara; nPara++ )
{
pOwner->ImplCheckNumBulletItem( nPara );
- pOwner->ImplCalcBulletText( nPara, FALSE, FALSE );
+ // update following paras as well, numbering depends on
+ // previous paras
+ pOwner->ImplCalcBulletText( nPara, TRUE, FALSE );
if( !pOwner->IsInUndo() && pOwner->IsUndoEnabled() )
pOwner->InsertUndo( new OutlinerUndoCheckPara( pOwner, nPara ) );