summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f0b207)
raw | patch | inline | side by side (parent: 7f0b207)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 6 Mar 2007 23:39:08 +0000 (23:39 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 6 Mar 2007 23:39:08 +0000 (23:39 +0000) |
src/desktop-style.cpp | patch | blob | history |
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp
index b29c32f7b211aa937579afcc4dd64f970467467c..789bcf4d0e5121a1d928a6ebbefff7fe32cc087c 100644 (file)
--- a/src/desktop-style.cpp
+++ b/src/desktop-style.cpp
@@ -413,8 +413,8 @@ objects_query_fillstroke (GSList *objects, SPStyle *style_res, bool const isfill
c[0] = c[1] = c[2] = c[3] = 0.0;
gint num = 0;
- gfloat prev[4];
- prev[0] = prev[1] = prev[2] = prev[3] = 0.0;
+ gfloat prev[3];
+ prev[0] = prev[1] = prev[2] = 0.0;
bool same_color = true;
for (GSList const *i = objects; i != NULL; i = i->next) {
@@ -476,7 +476,7 @@ objects_query_fillstroke (GSList *objects, SPStyle *style_res, bool const isfill
if (paint_res->set && paint_effectively_set && paint->type == SP_PAINT_TYPE_COLOR) {
- gfloat d[4];
+ gfloat d[3];
sp_color_get_rgb_floatv (&paint->value.color, d);
// Check if this color is the same as previous
@@ -484,9 +484,8 @@ objects_query_fillstroke (GSList *objects, SPStyle *style_res, bool const isfill
prev[0] = d[0];
prev[1] = d[1];
prev[2] = d[2];
- prev[3] = d[3];
} else {
- if (same_color && (prev[0] != d[0] || prev[1] != d[1] || prev[2] != d[2] || prev[3] != d[3]))
+ if (same_color && (prev[0] != d[0] || prev[1] != d[1] || prev[2] != d[2]))
same_color = false;
}