diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-10-13 08:50:39 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-10-13 08:50:39 +0000 |
| commit | 25f2a039c44b34fce5f0f4eb84259c4c1755aa62 (patch) | |
| tree | e739a50bc200d430f36fb155adf789b1cc8642db /src/widgets/stroke-style.cpp | |
| parent | Fix "Called C++ object pointer is null" (diff) | |
| download | inkscape-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.cpp | 6 |
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); |
