Bump version to 5.0-14
[LibreOffice.git] / external / libwps / 0001-QuattroPro-parser-correct-a-mistake-when-reading-neg.patch
blobd5a6f5473d40b12f505d55e674ee74123472234d
1 From 45a3dd5393e07340d5a63d8a8735789d73a61b17 Mon Sep 17 00:00:00 2001
2 From: osnola <alonso@loria.fr>
3 Date: Mon, 18 May 2015 08:27:59 +0200
4 Subject: [PATCH] QuattroPro parser: correct a mistake when reading negative
5 cell's position
7 ---
8 src/lib/QuattroSpreadsheet.cpp | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/src/lib/QuattroSpreadsheet.cpp b/src/lib/QuattroSpreadsheet.cpp
12 index cb0f4f5..ce5e20a 100644
13 --- a/src/lib/QuattroSpreadsheet.cpp
14 +++ b/src/lib/QuattroSpreadsheet.cpp
15 @@ -1668,7 +1668,7 @@ bool QuattroSpreadsheet::readCell
16 else
18 val &= 0x3FFF;
19 - if (val & 0x2000) val = val - 0x4000;
20 + if (val>0x1000) val = val - 0x2000;
22 if (dim==2)
23 val += sheetId;
24 --
25 2.3.2 (Apple Git-55)