summaryrefslogtreecommitdiffstats
path: root/src/widgets/stroke-style.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-10-13 08:50:39 +0000
committertavmjong-free <tavmjong@free.fr>2014-10-13 08:50:39 +0000
commit25f2a039c44b34fce5f0f4eb84259c4c1755aa62 (patch)
treee739a50bc200d430f36fb155adf789b1cc8642db /src/widgets/stroke-style.cpp
parentFix "Called C++ object pointer is null" (diff)
downloadinkscape-25f2a039c44b34fce5f0f4eb84259c4c1755aa62.tar.gz
inkscape-25f2a039c44b34fce5f0f4eb84259c4c1755aa62.zip
Fix multiple: "Called C++ object pointer is null"
(bzr r13608)
Diffstat (limited to 'src/widgets/stroke-style.cpp')
-rw-r--r--src/widgets/stroke-style.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp
index 0e0a4fd72..9c8d45908 100644
--- a/src/widgets/stroke-style.cpp
+++ b/src/widgets/stroke-style.cpp
@@ -763,6 +763,9 @@ StrokeStyle::setJoinType (unsigned const jointype)
tb = joinBevel;
break;
default:
+ // Should not happen
+ std::cerr << "StrokeStyle::setJoinType(): Invalid value" << std::endl;
+ tb = joinMiter;
break;
}
setJoinButtons(tb);
@@ -786,6 +789,9 @@ StrokeStyle::setCapType (unsigned const captype)
tb = capSquare;
break;
default:
+ // Should not happen
+ std::cerr << "StrokeStyle::setCapType(): Invalid value" << std::endl;
+ tb = capButt;
break;
}
setCapButtons(tb);