summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-08-03 01:03:43 +0000
committerMarkus Engel <markus.engel@tum.de>2013-08-03 01:03:43 +0000
commitbf4a1d2d49850170b936c30cfe2b30e798716406 (patch)
tree2632b534325df2eb92933f428979eeb8f5c52225 /src/gradient-chemistry.cpp
parentreordered SPDesktop::set_event_context2; fixed last mismatched-tags (diff)
downloadinkscape-bf4a1d2d49850170b936c30cfe2b30e798716406.tar.gz
inkscape-bf4a1d2d49850170b936c30cfe2b30e798716406.zip
Cleaned up.
(bzr r11608.1.117)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index 7dcbdf98c..40260ea66 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -648,8 +648,8 @@ SPStop *sp_vector_add_stop(SPGradient *vector, SPStop* prev_stop, SPStop* next_s
SPStop *newstop = reinterpret_cast<SPStop *>(vector->document->getObjectByRepr(new_stop_repr));
newstop->offset = offset;
sp_repr_set_css_double( newstop->getRepr(), "offset", (double)offset);
- guint32 const c1 = sp_stop_get_rgba32(prev_stop);
- guint32 const c2 = sp_stop_get_rgba32(next_stop);
+ guint32 const c1 = prev_stop->get_rgba32();
+ guint32 const c2 = next_stop->get_rgba32();
guint32 cnew = average_color (c1, c2, (offset - prev_stop->offset) / (next_stop->offset - prev_stop->offset));
Inkscape::CSSOStringStream os;
gchar c[64];
@@ -726,7 +726,7 @@ guint32 sp_item_gradient_stop_query_style(SPItem *item, GrPointType point_type,
{
SPStop *first = vector->getFirstStop();
if (first) {
- return sp_stop_get_rgba32(first);
+ return first->get_rgba32();
}
}
break;
@@ -737,7 +737,7 @@ guint32 sp_item_gradient_stop_query_style(SPItem *item, GrPointType point_type,
{
SPStop *last = sp_last_stop (vector);
if (last) {
- return sp_stop_get_rgba32(last);
+ return last->get_rgba32();
}
}
break;
@@ -748,7 +748,7 @@ guint32 sp_item_gradient_stop_query_style(SPItem *item, GrPointType point_type,
{
SPStop *stopi = sp_get_stop_i (vector, point_i);
if (stopi) {
- return sp_stop_get_rgba32(stopi);
+ return stopi->get_rgba32();
}
}
break;
@@ -982,7 +982,7 @@ void sp_item_gradient_invert_vector_color(SPItem *item, Inkscape::PaintTarget fi
for ( SPObject *child = vector->firstChild(); child; child = child->getNext()) {
if (SP_IS_STOP(child)) {
- guint32 color = sp_stop_get_rgba32(SP_STOP(child));
+ guint32 color = SP_STOP(child)->get_rgba32();
//g_message("Stop color %d", color);
gchar c[64];
sp_svg_write_color (c, sizeof(c),