r18133 by jghali - #11414: wrong unit conversion for gradient vector
scribus-commit
scribus-commit at lists.scribus.net
Fri Feb 8 22:20:46 UTC 2013
Author: jghali
Date: Fri Feb 8 22:20:45 2013
New Revision: 18133
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18133
Log:
#11414: wrong unit conversion for gradient vector
Modified:
branches/Version14x/Scribus/scribus/cpalette.cpp
Modified: branches/Version14x/Scribus/scribus/cpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18133&path=/branches/Version14x/Scribus/scribus/cpalette.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/cpalette.cpp (original)
+++ branches/Version14x/Scribus/scribus/cpalette.cpp Fri Feb 8 22:20:45 2013
@@ -882,8 +882,10 @@
{
if (gradEditButton->isChecked())
{
+ double unitRatio = currentDoc->unitRatio();
CGradDia->unitChange(currentDoc->unitIndex());
- CGradDia->setValues(currentItem->GrStartX, currentItem->GrStartY, currentItem->GrEndX, currentItem->GrEndY);
+ CGradDia->setValues(currentItem->GrStartX * unitRatio, currentItem->GrStartY * unitRatio,
+ currentItem->GrEndX * unitRatio, currentItem->GrEndY * unitRatio);
CGradDia->show();
}
else
More information about the scribus-commit
mailing list