summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/libwps/Makefile1
-rw-r--r--textproc/libwps/files/patch-src_lib_QuattroSpreadsheet.cpp11
2 files changed, 12 insertions, 0 deletions
diff --git a/textproc/libwps/Makefile b/textproc/libwps/Makefile
index 2580226932b1..d12f8f6537bf 100644
--- a/textproc/libwps/Makefile
+++ b/textproc/libwps/Makefile
@@ -3,6 +3,7 @@
PORTNAME= libwps
PORTVERSION= 0.4.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
diff --git a/textproc/libwps/files/patch-src_lib_QuattroSpreadsheet.cpp b/textproc/libwps/files/patch-src_lib_QuattroSpreadsheet.cpp
new file mode 100644
index 000000000000..238d496b099f
--- /dev/null
+++ b/textproc/libwps/files/patch-src_lib_QuattroSpreadsheet.cpp
@@ -0,0 +1,11 @@
+--- src/lib/QuattroSpreadsheet.cpp.orig 2015-03-11 11:14:10 UTC
++++ src/lib/QuattroSpreadsheet.cpp
+@@ -1668,7 +1668,7 @@ bool QuattroSpreadsheet::readCell
+ else
+ {
+ val &= 0x3FFF;
+- if (val & 0x2000) val = val - 0x4000;
++ if (val>0x1000) val = val - 0x2000;
+ }
+ if (dim==2)
+ val += sheetId;