libreoffice/docx-brightness-contrast-1.diff
Andras Timar 0a6b54b4d3 - bnc#875713 - LO-L3: DOCX import: picture brigtness/contrast not imported
* docx-brightness-contrast-1.diff
  * docx-brightness-contrast-2.diff

- bnc#875712 - LO-L3: DOC import: picture brigtness/contrast not imported
  * doc-brightness-contrast.diff

- bnc#870240 - LO-L3: pptx import file has text rotated on slide
  * fix-text-rotation.diff

- bnc#870234 - LO-L3: pptx file has text imported as black instead of white
  * import-gradfill-for-text-colors.diff

- bnc#870228 - LO-L3: Text inside the circle is not centered
  * text-alignment-in-shape.diff

- bnc#863021 - LO-L3: Allow setting language for slide or presentation entirely
  * set-language-in-impress.diff

- fix build on openSUSE 12.3:
  * disable-firebird-unit-test.diff

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=154
2014-05-20 10:02:11 +00:00

31 lines
1.6 KiB
Diff

From 02dcf4a9b7387f6675324245ab2fa5b7eabf0d12 Mon Sep 17 00:00:00 2001
From: Luboš Luňák <l.lunak@collabora.com>
Date: Wed, 30 Apr 2014 19:52:28 +0000
Subject: actually read brightness/contrast when reading docx (bnc#875713)
It's read for the shape in oox/ , but it didn't make it any further apparently.
Change-Id: I0885a675f72d63b3d262f1ef7e42f5d2e03588b6
(cherry picked from commit 804da2a977989ba1f046847b9e00f00c83749e30)
Reviewed-on: https://gerrit.libreoffice.org/9216
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
---
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index 304a3d2..607d92b 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -924,6 +924,10 @@ void GraphicImport::lcl_attribute(Id nName, Value & val)
xShapeProps->getPropertyValue("ShadowTransparence") >>= m_pImpl->nShadowTransparence;
}
+ xShapeProps->getPropertyValue("GraphicColorMode") >>= m_pImpl->eColorMode;
+ xShapeProps->getPropertyValue("AdjustLuminance") >>= m_pImpl->nBrightness;
+ xShapeProps->getPropertyValue("AdjustContrast") >>= m_pImpl->nContrast;
+
// fdo#70457: transform XShape into a SwXTextGraphicObject only if there's no rotation
if ( nRotation == 0 )
m_xGraphicObject = createGraphicObject( aMediaProperties );
--
cgit v0.9.0.2-2-gbebe