summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-04-25 04:52:00 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-04-25 04:52:00 +0000
commit3b09d1b8be1798131ce372d1eb308160c2383f88 (patch)
tree99a456bc10e72019c5a39396630df2669dafe365 /src/gradient-drag.cpp
parentMemory management in context menu (Bug #910529 ) (diff)
downloadinkscape-3b09d1b8be1798131ce372d1eb308160c2383f88.tar.gz
inkscape-3b09d1b8be1798131ce372d1eb308160c2383f88.zip
Fix for 950677 : Add link option to gradient toolbar
(bzr r11291)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index ad66b258a..c1f9251df 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1615,6 +1615,7 @@ void GrDrag::addDragger(GrDraggable *draggable)
*/
void GrDrag::addDraggersRadial(SPRadialGradient *rg, SPItem *item, bool fill_or_stroke)
{
+ rg->ensureVector();
addDragger (new GrDraggable (item, POINT_RG_CENTER, 0, fill_or_stroke));
guint num = rg->vector.stops.size();
if (num > 2) {
@@ -1637,6 +1638,7 @@ void GrDrag::addDraggersRadial(SPRadialGradient *rg, SPItem *item, bool fill_or_
*/
void GrDrag::addDraggersLinear(SPLinearGradient *lg, SPItem *item, bool fill_or_stroke)
{
+ lg->ensureVector();
addDragger (new GrDraggable (item, POINT_LG_BEGIN, 0, fill_or_stroke));
guint num = lg->vector.stops.size();
if (num > 2) {