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

scribus-commit scribus-commit at lists.scribus.net
Fri Dec 3 00:43:20 CET 2010


Author: jghali
Date: Thu Dec  2 23:43:19 2010
New Revision: 16048

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

Modified:
    branches/Version135/Scribus/scribus/guidemanagercore.cpp

Modified: branches/Version135/Scribus/scribus/guidemanagercore.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16048&path=/branches/Version135/Scribus/scribus/guidemanagercore.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/guidemanagercore.cpp (original)
+++ branches/Version135/Scribus/scribus/guidemanagercore.cpp Thu Dec  2 23:43:19 2010
@@ -72,7 +72,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);
 				}
@@ -152,7 +152,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);
 			}
@@ -344,7 +344,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);
 				}
@@ -411,7 +411,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