summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/sdi/drawsh.sdi2
-rw-r--r--sc/source/ui/drawfunc/drawsh2.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/sdi/drawsh.sdi b/sc/sdi/drawsh.sdi
index 7fb2639ef6ea..2801b17a3aee 100644
--- a/sc/sdi/drawsh.sdi
+++ b/sc/sdi/drawsh.sdi
@@ -125,7 +125,7 @@ interface TableDraw
Export = FALSE ;
// PseudoPrefix = SID_OBJECT_ALIGN;
ExecMethod = ExecDrawFunc ;
- StateMethod = NoState ;
+ StateMethod = GetDrawFuncState ;
GroupId = GID_FORMAT ;
FastCall , Cachable ;
ToolBoxConfig ;
diff --git a/sc/source/ui/drawfunc/drawsh2.cxx b/sc/source/ui/drawfunc/drawsh2.cxx
index bed84079a08e..e01639d9899c 100644
--- a/sc/source/ui/drawfunc/drawsh2.cxx
+++ b/sc/source/ui/drawfunc/drawsh2.cxx
@@ -164,6 +164,7 @@ void ScDrawShell::GetDrawFuncState( SfxItemSet& rSet ) // Funktionen disabl
rSet.DisableItem( SID_OBJECT_ALIGN_UP );
rSet.DisableItem( SID_OBJECT_ALIGN_MIDDLE );
rSet.DisableItem( SID_OBJECT_ALIGN_DOWN );
+ rSet.DisableItem( SID_OBJECT_ALIGN );
// pseudo slots for Format menu
rSet.DisableItem( SID_ALIGN_ANY_LEFT );