[Libreoffice-commits] libcdr.git: src/lib

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 23 06:44:09 UTC 2021


 src/lib/CDRParser.cpp |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 00c30046b1f85c814869544b1a79782a06f155bf
Author:     Fridrich Štrba <fridrich.strba at bluewin.ch>
AuthorDate: Tue Mar 23 07:27:42 2021 +0100
Commit:     Fridrich Štrba <fridrich.strba at bluewin.ch>
CommitDate: Tue Mar 23 07:27:42 2021 +0100

    Add debug output to see immediately if grammar fails
    
    Change-Id: I46402402931dad2190ef8aa405dd146a2d0fcf16

diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index d141591..5ddced8 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -165,7 +165,10 @@ static int parseColourString(const char *colourString, libcdr::CDRColor &colour,
   }
 
   if (!bRes)
+  {
+    CDR_DEBUG_MSG(("parseColourString --> spirit grammar failed with string: %s\n", colourString));
     return -1;
+  }
 
   // If fallback colours exist, use the first of them, since we are more likely
   // to get them right then the paletted spot colours


More information about the Libreoffice-commits mailing list