r19702 by jghali - #12864: Undo/Redo rounds Text Distances values
scribus-commit
scribus-commit at lists.scribus.net
Tue Dec 30 21:24:24 UTC 2014
Author: jghali
Date: Tue Dec 30 21:24:24 2014
New Revision: 19702
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19702
Log:
#12864: Undo/Redo rounds Text Distances values
Modified:
trunk/Scribus/scribus/pageitem.cpp
Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19702&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Tue Dec 30 21:24:24 2014
@@ -6709,36 +6709,36 @@
void PageItem::restoreLeftTextFrameDist(SimpleState *ss, bool isUndo)
{
if (isUndo)
- m_textDistanceMargins.Left = ss->getInt("OLD_DIST");
- else
- m_textDistanceMargins.Left = ss->getInt("NEW_DIST");
+ m_textDistanceMargins.Left = ss->getDouble("OLD_DIST");
+ else
+ m_textDistanceMargins.Left = ss->getDouble("NEW_DIST");
update();
}
void PageItem::restoreRightTextFrameDist(SimpleState *ss, bool isUndo)
{
if (isUndo)
- m_textDistanceMargins.Right = ss->getInt("OLD_DIST");
- else
- m_textDistanceMargins.Right = ss->getInt("NEW_DIST");
+ m_textDistanceMargins.Right = ss->getDouble("OLD_DIST");
+ else
+ m_textDistanceMargins.Right = ss->getDouble("NEW_DIST");
update();
}
void PageItem::restoreTopTextFrameDist(SimpleState *ss, bool isUndo)
{
if (isUndo)
- m_textDistanceMargins.Top = ss->getInt("OLD_DIST");
- else
- m_textDistanceMargins.Top = ss->getInt("NEW_DIST");
+ m_textDistanceMargins.Top = ss->getDouble("OLD_DIST");
+ else
+ m_textDistanceMargins.Top = ss->getDouble("NEW_DIST");
update();
}
void PageItem::restoreBottomTextFrameDist(SimpleState *ss, bool isUndo)
{
if (isUndo)
- m_textDistanceMargins.Bottom = ss->getInt("OLD_DIST");
- else
- m_textDistanceMargins.Bottom = ss->getInt("NEW_DIST");
+ m_textDistanceMargins.Bottom = ss->getDouble("OLD_DIST");
+ else
+ m_textDistanceMargins.Bottom = ss->getDouble("NEW_DIST");
update();
}
More information about the scribus-commit
mailing list