[librsvg/librsvg-2.42] (#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/librsvg-2.42] (#241) rsvg_new_node_light_source() - Fix cut&paste error between feDistantLight and feSpotLight
- Date: Fri, 8 Jun 2018 17:09:12 +0000 (UTC)
commit 88ea624c294d4361415cabb16dcea620008982cd
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/rsvg-filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/librsvg/rsvg-filter.c b/librsvg/rsvg-filter.c
index 15803188..a97905ec 100644
--- a/librsvg/rsvg-filter.c
+++ b/librsvg/rsvg-filter.c
@@ -4869,9 +4869,9 @@ rsvg_new_node_light_source (const char *element_name, RsvgNode *parent)
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]