[dia] vdx-export: Visio does not like <shape ID='0'>



commit ce480af64f2c9d03b3f4a7999718e999d59b7516
Author: Hans Breuer <hans breuer org>
Date:   Sun Aug 7 17:17:11 2011 +0200

    vdx-export: Visio does not like <shape ID='0'>
    
    It gave:
    
    [Warning] DataType:
    Context: Line 314 --- <VisioDocument><Pages><Page><Shapes><Shape> ID='0'
    Description: An attribute in this file contains data that is valid but
    inconsistent with the rest of the file. Visio has ignored the element that
    contains the attribute.

 plug-ins/vdx/vdx-export.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/vdx/vdx-export.c b/plug-ins/vdx/vdx-export.c
index 59a4d46..89c34bd 100644
--- a/plug-ins/vdx/vdx-export.c
+++ b/plug-ins/vdx/vdx-export.c
@@ -288,7 +288,8 @@ begin_render(DiaRenderer *self, const Rectangle *update)
 
     renderer->Colors = g_array_new(FALSE, TRUE, sizeof (Color));
     renderer->Fonts = g_array_new(FALSE, TRUE, sizeof (char *));
-    renderer->shapeid = 0;
+    /* Visio does not like <shape ID='0'> */
+    renderer->shapeid = 1;
     /* renderer->version = 0; */
 
     /* Black and white are 0 and 1 respectively */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]