r18274 by jghali - basic indentation fixes

scribus-commit scribus-commit at lists.scribus.net
Wed May 1 12:00:04 UTC 2013


Author: jghali
Date: Wed May  1 12:00:04 2013
New Revision: 18274

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18274
Log:
basic indentation fixes

Modified:
    trunk/Scribus/scribus/canvas.cpp

Modified: trunk/Scribus/scribus/canvas.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18274&path=/trunk/Scribus/scribus/canvas.cpp
==============================================================================
--- trunk/Scribus/scribus/canvas.cpp (original)
+++ trunk/Scribus/scribus/canvas.cpp Wed May  1 12:00:04 2013
@@ -1492,9 +1492,9 @@
 	//then we must be sure that text frames are valid and all notes frames are created before we start drawing
 	if (!notesFramesPass && !m_doc->notesList().isEmpty())
 	{
-	for (int it = 0; it < m_doc->Items->count(); ++it)
-	{
-		currItem = m_doc->Items->at(it);
+		for (int it = 0; it < m_doc->Items->count(); ++it)
+		{
+			currItem = m_doc->Items->at(it);
 			if ( !currItem->isTextFrame()
 				|| currItem->isNoteFrame()
 				|| !currItem->invalid
@@ -1530,9 +1530,9 @@
 		}
 		if (cullingArea.intersects(currItem->getBoundingRect().adjusted(0.0, 0.0, 1.0, 1.0)))
 		{
-//FIXME						if (!evSpon || forceRedraw) 
-//					currItem->invalid = true;
-//						if ((!m_MouseButtonPressed) || (m_doc->appMode == modeEditClip))
+//FIXME		if (!evSpon || forceRedraw) 
+//				currItem->invalid = true;
+//			if ((!m_MouseButtonPressed) || (m_doc->appMode == modeEditClip))
 			if (((m_viewMode.operItemMoving || m_viewMode.drawSelectedItemsWithControls) && currItem->isSelected()))
 			{
 //					qDebug() << "skipping pageitem (move/resizeEdit/selected)" << m_viewMode.operItemMoving << currItem->isSelected();
@@ -1547,12 +1547,12 @@
 			{
 				// I comment it because the "view" should not
 				// alter the "data". And it really prevents optimisation - pm
-// 							if (m_viewMode.forceRedraw)
-// 								currItem->invalidateLayout();
+// 				if (m_viewMode.forceRedraw)
+// 					currItem->invalidateLayout();
 				currItem->DrawObj(painter, cullingArea);
 				currItem->DrawObj_Decoration(painter);
 			}
-//						currItem->Redrawn = true;
+//			currItem->Redrawn = true;
 			if ((currItem->asTextFrame()) && ((currItem->nextInChain() != 0) || (currItem->prevInChain() != 0)))
 			{
 				PageItem *nextItem = currItem;
@@ -1571,7 +1571,6 @@
 			*/
 			if ((m_doc->appMode == modeEdit) && (currItem->isSelected()) && (currItem->itemType() == PageItem::TextFrame))
 			{
-			
 				setupEditHRuler(currItem);
 			}
 		}




More information about the scribus-commit mailing list