summaryrefslogtreecommitdiffstats
path: root/external/libvisio/tdf-77915-fix-import-of-default-shape-fill-color.patch
blob: 68c0c2c88b108d58bb81133f9feed49635ef0ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/lib/VSDStyles.h
+++ src/lib/VSDStyles.h
@@ -129,7 +129,9 @@ struct VSDOptionalFillStyle
     ASSIGN_OPTIONAL(style.qsFillColour, qsFillColour);
     ASSIGN_OPTIONAL(style.qsShadowColour, qsShadowColour);
     ASSIGN_OPTIONAL(style.qsFillMatrix, qsFillMatrix);
-    ASSIGN_OPTIONAL(style.fgColour, fgColour);
+    // Colour 'Blue, Variant 1' is special. It is the default,
+    // and it is not saved explicitely in the VSDX file.
+    ASSIGN_OPTIONAL(style.fgColour, fgColour);else fgColour = Colour(0x5b, 0x9b, 0xd5, 0);
     ASSIGN_OPTIONAL(style.bgColour, bgColour);
     ASSIGN_OPTIONAL(style.shadowFgColour, shadowFgColour);
   }