summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/drawsh5.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-01 12:17:46 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-07 08:26:55 +0100
commit073b4eadd2a9a00b915c664df90b15d5b2d709c0 (patch)
treebd36b36f3ec1b8faeacfbadabae00ae74b6e3757 /sc/source/ui/drawfunc/drawsh5.cxx
parent1163bcd5da3063e7e988ebf49d9b60dfd6f6c703 (diff)
tdf#116108 Add option to fit images into their cell
Change-Id: I2e9a4f567049f11985e4bf914c2fa5bd1f181823 Reviewed-on: https://gerrit.libreoffice.org/50569 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sc/source/ui/drawfunc/drawsh5.cxx')
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index 892895bb27fd..971f1aa73782 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -458,6 +458,10 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
pView->SetMarkedOriginalSize();
break;
+ case SID_FITCELLSIZE:
+ pView->FitToCellSize();
+ break;
+
case SID_ENABLE_HYPHENATION:
{
const SfxBoolItem* pItem = rReq.GetArg<SfxBoolItem>(SID_ENABLE_HYPHENATION);