r19952 by fschmid - Fixed Bug #12867: Changing item level does not update text flow around frame

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 26 21:01:38 UTC 2015


Author: fschmid
Date: Thu Mar 26 21:01:38 2015
New Revision: 19952

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19952
Log:
Fixed Bug #12867: Changing item level does not update text flow around frame

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19952&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Thu Mar 26 21:01:38 2015
@@ -7556,6 +7556,7 @@
 	int docSelectionCount = m_Selection->count();
 	if (docSelectionCount == 0)
 		return;
+	QRectF selRect = m_Selection->getGroupRect();
 	if (UndoManager::undoEnabled())
 	{
 		ScItemState<QList<QPointer<PageItem> > > *is = new ScItemState<QList<QPointer<PageItem> > >(Um::LevelBottom);
@@ -7613,6 +7614,7 @@
 		}
 	}
 	changed();
+	invalidateRegion(selRect);
 	regionsChanged()->update(QRectF());
 	return;
 }
@@ -7622,6 +7624,7 @@
 	int docSelectionCount = m_Selection->count();
 	if (docSelectionCount == 0)
 		return;
+	QRectF selRect = m_Selection->getGroupRect();
 	if (UndoManager::undoEnabled())
 	{
 		ScItemState<QList<QPointer<PageItem> > > *is = new ScItemState<QList<QPointer<PageItem> > >(Um::LevelTop);
@@ -7679,6 +7682,7 @@
 		}
 	}
 	changed();
+	invalidateRegion(selRect);
 	regionsChanged()->update(QRectF());
 	return;
 }
@@ -7688,6 +7692,7 @@
 	int docSelectionCount = m_Selection->count();
 	if (docSelectionCount == 0)
 		return;
+	QRectF selRect = m_Selection->getGroupRect();
 	if (UndoManager::undoEnabled())
 	{
 		ScItemState<QList<QPointer<PageItem> > > *is = new ScItemState<QList<QPointer<PageItem> > >(Um::LevelDown);
@@ -7751,6 +7756,7 @@
 		*m_Selection = tempSelection;
 		m_Selection->delaySignalsOff();
 		changed();
+		invalidateRegion(selRect);
 		regionsChanged()->update(QRectF());
 	}
 }
@@ -7760,6 +7766,7 @@
 	int docSelectionCount = m_Selection->count();
 	if (docSelectionCount == 0)
 		return;
+	QRectF selRect = m_Selection->getGroupRect();
 	if (UndoManager::undoEnabled())
 	{
 		ScItemState<QList<QPointer<PageItem> > > *is = new ScItemState<QList<QPointer<PageItem> > >(Um::LevelUp);
@@ -7825,6 +7832,7 @@
 		*m_Selection = tempSelection;
 		m_Selection->delaySignalsOff();
 		changed();
+		invalidateRegion(selRect);
 		regionsChanged()->update(QRectF());
 	}
 }




More information about the scribus-commit mailing list