r18135 by jghali - fix code indentation issue

scribus-commit scribus-commit at lists.scribus.net
Fri Feb 8 22:44:32 UTC 2013


Author: jghali
Date: Fri Feb  8 22:44:32 2013
New Revision: 18135

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18135
Log:
fix code indentation issue

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18135&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Fri Feb  8 22:44:32 2013
@@ -4494,8 +4494,8 @@
 		else
 		{
 			layout();
-		if (oldLast != lastInFrame() && NextBox != 0 && NextBox->invalid)
-			NextBox->updateLayout();
+			if (oldLast != lastInFrame() && NextBox != 0 && NextBox->invalid)
+				NextBox->updateLayout();
 		}
 //		Tinput = false;
 //		if ((cr == QChar(13)) && (itemText.length() != 0))
@@ -4552,8 +4552,8 @@
 		else
 		{
 			layout();
-		if (oldLast != lastInFrame() && NextBox != 0 && NextBox->invalid)
-			NextBox->updateLayout();
+			if (oldLast != lastInFrame() && NextBox != 0 && NextBox->invalid)
+				NextBox->updateLayout();
 		}
 		if (itemText.cursorPosition() < firstInFrame())
 		{
@@ -4614,9 +4614,10 @@
 			if (UndoManager::undoEnabled())
 			{
 				SimpleState *ss = dynamic_cast<SimpleState*>(undoManager->getLastUndo());
-				if(ss && ss->get("ETEA") == "insert_frametext")
-						ss->set("TEXT_STR",ss->get("TEXT_STR") + QString(SpecialChars::TAB));
-				else {
+				if (ss && ss->get("ETEA") == "insert_frametext")
+					ss->set("TEXT_STR",ss->get("TEXT_STR") + QString(SpecialChars::TAB));
+				else 
+				{
 					ss = new SimpleState(Um::InsertText,"",Um::ICreate);
 					ss->set("INSERT_FRAMETEXT", "insert_frametext");
 					ss->set("ETEA", QString("insert_frametext"));
@@ -4641,9 +4642,10 @@
 			if (UndoManager::undoEnabled())
 			{
 				SimpleState *ss = dynamic_cast<SimpleState*>(undoManager->getLastUndo());
-				if(ss && ss->get("ETEA") == "insert_frametext")
-						ss->set("TEXT_STR",ss->get("TEXT_STR") + uc);
-				else {
+				if (ss && ss->get("ETEA") == "insert_frametext")
+					ss->set("TEXT_STR",ss->get("TEXT_STR") + uc);
+				else 
+				{
 					ss = new SimpleState(Um::InsertText,"",Um::ICreate);
 					ss->set("INSERT_FRAMETEXT", "insert_frametext");
 					ss->set("ETEA", QString("insert_frametext"));
@@ -4651,7 +4653,8 @@
 					ss->set("START", itemText.cursorPosition());
 					UndoObject * undoTarget = this;
 					if (isNoteFrame())
-					{						undoTarget = m_Doc;
+					{
+						undoTarget = m_Doc;
 						ss->set("noteframeName", getUName());
 					}
 					undoManager->action(undoTarget, ss);




More information about the scribus-commit mailing list