r16047 by jghali - #9543: Adding horizontal guide displayed as vertical in history

scribus-commit scribus-commit at lists.scribus.net
Fri Dec 3 00:40:57 CET 2010


Author: jghali
Date: Thu Dec  2 23:40:57 2010
New Revision: 16047

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16047
Log:
#9543: Adding horizontal guide displayed as vertical in history

Modified:
    trunk/Scribus/scribus/guidemanagercore.cpp

Modified: trunk/Scribus/scribus/guidemanagercore.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16047&path=/trunk/Scribus/scribus/guidemanagercore.cpp
==============================================================================
--- trunk/Scribus/scribus/guidemanagercore.cpp (original)
+++ trunk/Scribus/scribus/guidemanagercore.cpp Thu Dec  2 23:40:57 2010
@@ -73,7 +73,7 @@
 				horizontalStdG.append(value);
 				if (UndoManager::undoEnabled())
 				{
-					SimpleState* ss = new SimpleState(Um::AddVGuide, 0, Um::IGuides);
+					SimpleState* ss = new SimpleState(Um::AddHGuide, 0, Um::IGuides);
 					ss->set("ADD_H", value);
 					undoManager->action(m_page, ss);
 				}
@@ -153,7 +153,7 @@
 			horizontalStdG.removeAt(horizontalStdG.indexOf(value));
 			if (UndoManager::undoEnabled())
 			{
-				SimpleState* ss = new SimpleState(Um::DelVGuide, 0, Um::IGuides);
+				SimpleState* ss = new SimpleState(Um::DelHGuide, 0, Um::IGuides);
 				ss->set("REMOVE_H", value);
 				undoManager->action(m_page, ss);
 			}
@@ -345,7 +345,7 @@
 			{
 				for (int i = 0; i < horizontalStdG.count(); ++i)
 				{
-					SimpleState* ss = new SimpleState(Um::DelVGuide, 0, Um::IGuides);
+					SimpleState* ss = new SimpleState(Um::DelHGuide, 0, Um::IGuides);
 					ss->set("REMOVE_H", horizontalStdG[i]);
 					undoManager->action(m_page, ss);
 				}
@@ -412,7 +412,7 @@
 			horizontalStdG.append(to);
 			if (UndoManager::undoEnabled())
 			{
-				SimpleState* ss = new SimpleState(Um::MoveVGuide, 0, Um::IGuides);
+				SimpleState* ss = new SimpleState(Um::MoveHGuide, 0, Um::IGuides);
 				ss->set("MOVE_H_FROM", from);
 				ss->set("MOVE_H_TO", to);
 				undoManager->action(m_page, ss);




More information about the scribus-commit mailing list