summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-07-18 00:24:31 +0000
committerJon A. Cruz <jon@joncruz.org>2010-07-18 00:24:31 +0000
commit481d61d14a18ea012527b6b93590bff6ad75ba33 (patch)
tree9756e34b45c5527155c81f80864919b5d7b5cd27 /src/extension
parentSimplify code related to snapping while rotating (diff)
downloadinkscape-481d61d14a18ea012527b6b93590bff6ad75ba33.tar.gz
inkscape-481d61d14a18ea012527b6b93590bff6ad75ba33.zip
Correct behavior of gradient stops to extract color from swatch when color is drag-n-drop'ed or selected.
(bzr r9620)
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/internal/javafx-out.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/internal/javafx-out.cpp b/src/extension/internal/javafx-out.cpp
index a4d348940..c635f7b2d 100644
--- a/src/extension/internal/javafx-out.cpp
+++ b/src/extension/internal/javafx-out.cpp
@@ -386,7 +386,7 @@ bool JavaFXOutput::doStyle(SPStyle *style)
/**
* Fill
*/
- SPIPaint fill = style->fill;
+ SPIPaint const &fill = style->fill;
if (fill.isColor())
{
// see color.h for how to parse SPColor
@@ -423,7 +423,7 @@ bool JavaFXOutput::doStyle(SPStyle *style)
*/
if (style->stroke_opacity.value > 0)
{
- SPIPaint stroke = style->stroke;
+ SPIPaint const &stroke = style->stroke;
out(" stroke: %s\n",
rgba(stroke.value.color, SP_SCALE24_TO_FLOAT(style->stroke_opacity.value)).c_str());
double strokewidth = style->stroke_width.value;