Skip to content

Commit

Permalink
Layer: Use get_color when get_cairocolor is not provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
genete committed Jul 22, 2012
1 parent 50df043 commit 5e2ad92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synfig-core/src/synfig/layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}


Expand Down

0 comments on commit 5e2ad92

Please sign in to comment.