summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-28 12:43:26 +0200
committerEike Rathke <erack@redhat.com>2017-07-28 14:14:05 +0200
commit73400f7a87205c052002d365245c35d3d0c996f5 (patch)
tree31c954cd8c808ab2b4f0334d203168d0958498bd
parenttdf#109313 tdf#108494: fix incorrect Watermark position (diff)
downloadcore-73400f7a87205c052002d365245c35d3d0c996f5.tar.gz
core-73400f7a87205c052002d365245c35d3d0c996f5.zip
Export to PNG: also Calc has MeasureUnit
Though meFieldUnit appears to not be used anywhere, but ... Change-Id: I99e8392e4a773ba00868904e0f2ff5fdbc4bc47d Reviewed-on: https://gerrit.libreoffice.org/40521 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--filter/source/graphic/GraphicExportDialog.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/filter/source/graphic/GraphicExportDialog.cxx b/filter/source/graphic/GraphicExportDialog.cxx
index 4f1d47acaf68..2673ae6220cc 100644
--- a/filter/source/graphic/GraphicExportDialog.cxx
+++ b/filter/source/graphic/GraphicExportDialog.cxx
@@ -130,6 +130,10 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum
{
aConfigPath = "Office.Draw/Layout/Other/MeasureUnit";
}
+ else if ( xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument") )
+ {
+ aConfigPath = "Office.Calc/Layout/Other/MeasureUnit";
+ }
else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") || xServiceInfo->supportsService("com.sun.star.text.WebDocument") )
{
aConfigPath = "Office.Writer/Layout/Other/MeasureUnit";