summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Stanciu <stanciumarius94@gmail.com>2016-09-29 21:39:54 +0300
committerJiří Techet <techet@gmail.com>2016-09-29 23:36:36 +0200
commitbe636b39e1208033850ca65b93ac69c3fab25378 (patch)
tree632c0a2ea066ae5c97d64c3c61c3a8e89d92789e
parentd682bea291049422427fc8fb961d6b721787bd94 (diff)
downloadlibchamplain-be636b39e1208033850ca65b93ac69c3fab25378.tar.gz
Fix path-layer surface exporting when no clone is visible.
https://bugzilla.gnome.org/show_bug.cgi?id=771698
-rw-r--r--champlain/champlain-path-layer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/champlain/champlain-path-layer.c b/champlain/champlain-path-layer.c
index 47956ad..070904f 100644
--- a/champlain/champlain-path-layer.c
+++ b/champlain/champlain-path-layer.c
@@ -842,6 +842,9 @@ update_surface (ChamplainPathLayer *layer,
cairo_surface_destroy (new_surface);
cairo_destroy (cr);
}
+ /* When only the right actor is visible, no merging is required */
+ else if (!CLUTTER_ACTOR_IS_VISIBLE (priv->left_actor))
+ set_surface (CHAMPLAIN_EXPORTABLE (layer), priv->right_surface);
}
static gboolean