summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/imageicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget/imageicon.cpp')
-rw-r--r--src/ui/widget/imageicon.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/widget/imageicon.cpp b/src/ui/widget/imageicon.cpp
index c60e94ab7..77015bdd2 100644
--- a/src/ui/widget/imageicon.cpp
+++ b/src/ui/widget/imageicon.cpp
@@ -97,11 +97,10 @@ void ImageIcon::init()
bool ImageIcon::showSvgDocument(const SPDocument *docArg)
{
-
if (document)
document->doUnref();
- SPDocument *doc = (SPDocument *)docArg;
+ SPDocument *doc = const_cast<SPDocument *>(docArg);
doc->doRef();
document = doc;