[dia] vdx: export only visible layers
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] vdx: export only visible layers
- Date: Sun, 15 Jun 2014 13:39:42 +0000 (UTC)
commit 3742d41eb2429f9dd40c9b06e8428df3813ffc93
Author: Hans Breuer <hans breuer org>
Date: Sat Jun 14 14:49:59 2014 +0200
vdx: export only visible layers
plug-ins/vdx/vdx-export.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/vdx/vdx-export.c b/plug-ins/vdx/vdx-export.c
index b60c225..faa1c71 100644
--- a/plug-ins/vdx/vdx-export.c
+++ b/plug-ins/vdx/vdx-export.c
@@ -1759,10 +1759,11 @@ export_vdx(DiagramData *data, DiaContext *ctx,
for (i=0; i<data->layers->len; i++)
{
layer = (Layer *) g_ptr_array_index(data->layers, i);
- layer_render(layer, DIA_RENDERER(renderer), NULL, NULL, data, 0);
+ if (layer->visible)
+ layer_render(layer, DIA_RENDERER(renderer), NULL, NULL, data, 0);
renderer->depth++;
}
-
+
write_header(data, renderer);
DIA_RENDERER_GET_CLASS(renderer)->end_render(DIA_RENDERER(renderer));
@@ -1776,10 +1777,11 @@ export_vdx(DiagramData *data, DiaContext *ctx,
for (i=0; i<data->layers->len; i++)
{
layer = (Layer *) g_ptr_array_index(data->layers, i);
- layer_render(layer, DIA_RENDERER(renderer), NULL, NULL, data, 0);
+ if (layer->visible)
+ layer_render(layer, DIA_RENDERER(renderer), NULL, NULL, data, 0);
renderer->depth++;
}
-
+
DIA_RENDERER_GET_CLASS(renderer)->end_render(DIA_RENDERER(renderer));
/* Done */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]