[Libreoffice-commits] core.git: filter/source
Eike Rathke
erack at redhat.com
Fri Jul 28 12:15:05 UTC 2017
filter/source/graphic/GraphicExportDialog.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 73400f7a87205c052002d365245c35d3d0c996f5
Author: Eike Rathke <erack at redhat.com>
Date: Fri Jul 28 12:43:26 2017 +0200
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 at redhat.com>
Tested-by: Jenkins <ci at libreoffice.org>
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";
More information about the Libreoffice-commits
mailing list