Author: Carlos Lopez <[email protected]>
Date: Sun Jul 22 10:22:34 2012 +0200
Layer: Use get_color when get_cairocolor is not provided.
---
synfig-core/src/synfig/layer.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/synfig-core/src/synfig/layer.cpp b/synfig-core/src/synfig/layer.cpp
index 541d7a8..48bba2b 100644
--- a/synfig-core/src/synfig/layer.cpp
+++ b/synfig-core/src/synfig/layer.cpp
@@ -540,7 +540,10 @@ Layer::get_color(Context context, const Point &pos)const
CairoColor
Layer::get_cairocolor(Context context, const Point &pos)const
{
- return context.get_cairocolor(pos);
+ // When the layer doesn't define its own get_cairocolor
+ // then the normal get_cairo color will be used and
+ // a Color to CairoColor conversion will be done.
+ return CairoColor(context.get_color(pos));
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl