[librsvg] (#241) rsvg_new_node_light_source() - Fix cut&paste error between feDistantLight and feSpotLight
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] (#241) rsvg_new_node_light_source() - Fix cut&paste error between feDistantLight and feSpotLight
- Date: Fri, 8 Jun 2018 17:06:41 +0000 (UTC)
commit b9b29ae5a88f0bab981f23f58efa953f582a312b
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jun 8 11:43:14 2018 -0500
(#241) rsvg_new_node_light_source() - Fix cut&paste error between feDistantLight and feSpotLight
Sigh, I broke this and never caught it because there weren't tests for
filters with light sources.
https://gitlab.gnome.org/GNOME/librsvg/issues/241
librsvg/filters/light_source.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/librsvg/filters/light_source.c b/librsvg/filters/light_source.c
index 85f8288f..53b98eea 100644
--- a/librsvg/filters/light_source.c
+++ b/librsvg/filters/light_source.c
@@ -455,9 +455,9 @@ rsvg_new_node_light_source (const char *element_name, RsvgNode *parent, const ch
data->specularExponent = 1;
if (strcmp (element_name, "feDistantLight") == 0)
- data->type = SPOTLIGHT;
- else if (strcmp (element_name, "feSpotLight") == 0)
data->type = DISTANTLIGHT;
+ else if (strcmp (element_name, "feSpotLight") == 0)
+ data->type = SPOTLIGHT;
else if (strcmp (element_name, "fePointLight") == 0)
data->type = POINTLIGHT;
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]