fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / opencollada / patches / 0001-Revert-fix-for-malformed-FBX-COLLADA-id.patch.1
blob968b57c50b9a56ee9889f2e431cb551459bd8604
1 From a54360e9d2a67350f27eec8dfbe1103778b2711c Mon Sep 17 00:00:00 2001
2 From: Fabrice Robinet <fabricerobinet@me.com>
3 Date: Tue, 13 May 2014 16:31:40 -0700
4 Subject: [PATCH 1/2] Revert fix for malformed FBX-COLLADA id
6 ---
7  GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp | 17 +++++++++++------
8  1 file changed, 11 insertions(+), 6 deletions(-)
10 diff --git a/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp b/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
11 index 404306a..1f9a3ee 100644
12 --- a/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
13 +++ b/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
14 @@ -868,11 +868,13 @@ namespace GeneratedSaxParser
15              failed = false;
16              return COLLADABU::URI(0);
17          }
18 +        const ParserString& string = toStringListItem(buffer, bufferEnd, failed);
19 +        return COLLADABU::URI(string.str, string.length);
20 +        
21 +        //FIXME: Testing fails on windows but pass on OSX with this fix.
22          //Just get the string as it is for ids, so that we are able to read FBX-COLLADA
23          //Otherwise, calling toStringItem would result in a truncated string when an id contains spaces
24 -        //const ParserString& string = toStringListItem(buffer, bufferEnd, failed);
25 -        //return COLLADABU::URI(string.str, string.length);
26 -        return COLLADABU::URI((const char*)*buffer, bufferEnd - *buffer);
27 +        //return COLLADABU::URI((const char*)*buffer, bufferEnd - *buffer);
28      }
30      //--------------------------------------------------------------------
31 @@ -883,11 +885,14 @@ namespace GeneratedSaxParser
32              failed = false;
33              return COLLADABU::URI(0);
34          }
35 +        
36 +        const ParserString& string = toStringListItem(buffer, failed);
37 +        return COLLADABU::URI(string.str, string.length);
38 +        
39 +        //FIXME: Testing fails on windows but pass on OSX with this fix.
40          //Just get the string as it is for ids, so that we are able to read FBX-COLLADA
41          //Otherwise, calling toStringItem would result in a truncated string when an id contains spaces
42 -        //const ParserString& string = toStringListItem(buffer, failed);
43 -        //return COLLADABU::URI(string.str, string.length);
44 -        return COLLADABU::URI((const char*)*buffer);
45 +        //return COLLADABU::URI((const char*)*buffer);
46      }
49 -- 
50 1.8.1.4