summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-22 14:50:54 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-22 14:50:54 +0000
commit2a512b54b57ae53464601b38b05eab6f6c3cf3c4 (patch)
tree77810d64bec56ecf825e4206c8dc82655eafdff8 /src/sp-rect.cpp
parentFix for Bug #1022543 (Ctrl+C increments the documents count). (diff)
downloadinkscape-2a512b54b57ae53464601b38b05eab6f6c3cf3c4.tar.gz
inkscape-2a512b54b57ae53464601b38b05eab6f6c3cf3c4.zip
cppcheck
(bzr r12713)
Diffstat (limited to 'src/sp-rect.cpp')
-rw-r--r--src/sp-rect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp
index ff5e81f95..b327f0b83 100644
--- a/src/sp-rect.cpp
+++ b/src/sp-rect.cpp
@@ -113,7 +113,7 @@ void SPRect::set(unsigned key, gchar const *value) {
void SPRect::update(SPCtx* ctx, unsigned int flags) {
if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
- SPItemCtx const *ictx = (SPItemCtx const *) ctx;
+ SPItemCtx const *ictx = reinterpret_cast<SPItemCtx const *>(ctx);
double const w = ictx->viewport.width();
double const h = ictx->viewport.height();