summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-11-26 19:45:29 +0000
committertavmjong-free <tavmjong@free.fr>2014-11-26 19:45:29 +0000
commitc94cbdb38d7ac2f70a669035b090140eae3cc05b (patch)
treee886fee87a8c300f2165edbe5cd17d652b869cae /src/live_effects/effect.cpp
parentChange default display unit to 'px'. (diff)
downloadinkscape-c94cbdb38d7ac2f70a669035b090140eae3cc05b.tar.gz
inkscape-c94cbdb38d7ac2f70a669035b090140eae3cc05b.zip
Change getDefaultUnit() to getDisplayUnit() to better reflect value returned by function.
(bzr r13774)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 0a1c1f63d..827f70749 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -450,7 +450,7 @@ void Effect::doOnRemove (SPLPEItem const* /*lpeitem*/)
void Effect::doOnApply_impl(SPLPEItem const* lpeitem)
{
sp_lpe_item = const_cast<SPLPEItem *>(lpeitem);
- defaultUnit = &sp_lpe_item->document->getDefaultUnit()->abbr;
+ defaultUnit = &sp_lpe_item->document->getDisplayUnit()->abbr;
/*sp_curve = SP_SHAPE(sp_lpe_item)->getCurve();
pathvector_before_effect = sp_curve->get_pathvector();*/
doOnApply(lpeitem);
@@ -459,7 +459,7 @@ void Effect::doOnApply_impl(SPLPEItem const* lpeitem)
void Effect::doBeforeEffect_impl(SPLPEItem const* lpeitem)
{
sp_lpe_item = const_cast<SPLPEItem *>(lpeitem);
- defaultUnit = &sp_lpe_item->document->getDefaultUnit()->abbr;
+ defaultUnit = &sp_lpe_item->document->getDisplayUnit()->abbr;
//printf("(SPLPEITEM*) %p\n", sp_lpe_item);
sp_curve = SP_SHAPE(sp_lpe_item)->getCurve();
pathvector_before_effect = sp_curve->get_pathvector();