summaryrefslogtreecommitdiffstats
path: root/sigscript/MapWarpWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/MapWarpWrapper.cpp')
-rw-r--r--sigscript/MapWarpWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sigscript/MapWarpWrapper.cpp b/sigscript/MapWarpWrapper.cpp
index 32e1c14d..bacba9b0 100644
--- a/sigscript/MapWarpWrapper.cpp
+++ b/sigscript/MapWarpWrapper.cpp
@@ -55,8 +55,8 @@ QString Sigscript::MapWarpWrapper::name() const
QPoint Sigscript::MapWarpWrapper::coordinate() const
{
- if (value("coordinate").canConvert<QPoint>())
- return value("coordinate").toPoint();
+ if (hasValueOfType<QPoint>("coordinate"))
+ return valueOfType<QPoint>("coordinate");
return m_warp->coordinate();
}