summaryrefslogtreecommitdiff
path: root/libvisio
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-12-11 11:57:34 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-12-11 11:58:11 +0100
commit1ffb9be31e7188ee6bc0e98c97afd1196cd39726 (patch)
tree9e621e2d70e758bf07b4a4e56741248915aace0a /libvisio
parentca6c8c3badea5d71f2d7dd2ab1ef46559d860213 (diff)
Fix a bug with fixed line-heights in Visio files
Change-Id: I861c49d2b0dfc57d6e777b14742cb324e4d4d0a8 Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Diffstat (limited to 'libvisio')
-rw-r--r--libvisio/UnpackedTarball_visio.mk8
-rw-r--r--libvisio/libvisio-lineheight.patch11
2 files changed, 19 insertions, 0 deletions
diff --git a/libvisio/UnpackedTarball_visio.mk b/libvisio/UnpackedTarball_visio.mk
index aa9113bafd6d..3afd8afe1c87 100644
--- a/libvisio/UnpackedTarball_visio.mk
+++ b/libvisio/UnpackedTarball_visio.mk
@@ -11,4 +11,12 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,visio))
$(eval $(call gb_UnpackedTarball_set_tarball,visio,$(VISIO_TARBALL)))
+$(eval $(call gb_UnpackedTarball_add_patches,visio,\
+ libvisio/libvisio-lineheight.patch \
+))
+# libvisio/libvisio-lineheight.patch: see upstream
+# <https://gerrit.libreoffice.org/gitweb?p=libvisio.git;a=commitdiff;
+# h=257e1896942a7028f1d0669ac6d4f61f294cb14d>
+# "Fixed line height is in inches :("
+
# vim: set noet sw=4 ts=4:
diff --git a/libvisio/libvisio-lineheight.patch b/libvisio/libvisio-lineheight.patch
new file mode 100644
index 000000000000..922fac80b0ac
--- /dev/null
+++ b/libvisio/libvisio-lineheight.patch
@@ -0,0 +1,11 @@
+--- misc/libvisio-0.0.23/src/lib/VSDContentCollector.cpp
++++ misc/build/libvisio-0.0.23/src/lib/VSDContentCollector.cpp
+@@ -526,7 +526,7 @@ void libvisio::VSDContentCollector::_flushText()
+ break;
+ }
+ if ((*paraIt).spLine > 0)
+- paraProps.insert("fo:line-height", (*paraIt).spLine, WPX_POINT);
++ paraProps.insert("fo:line-height", (*paraIt).spLine);
+ else
+ paraProps.insert("fo:line-height", -(*paraIt).spLine, WPX_PERCENT);
+