summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2002-10-18 12:03:41 +0000
committerIngrid Halama <iha@openoffice.org>2002-10-18 12:03:41 +0000
commitec140007787175f42000db0e7d8a2ede9c89c81a (patch)
treeb406299b530f9178e7dc42f650101bf14bd57edd /sd/source
parentb2389b0e7800237fa9d6dc229677063a1377818b (diff)
#95941# Format-Standard (SID_SET_DEFAULT) was not enabled if text with different styles was selected
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/drviewsf.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx
index 85b9f4072..db0a100ad 100644
--- a/sd/source/ui/view/drviewsf.cxx
+++ b/sd/source/ui/view/drviewsf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drviewsf.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: ka $ $Date: 2002-03-06 16:27:23 $
+ * last change: $Author: iha $ $Date: 2002-10-18 13:03:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -449,7 +449,9 @@ void SdDrawViewShell::GetAttrState( SfxItemSet& rSet )
case SID_SET_DEFAULT:
{
- if( !pDrView->GetStyleSheet() )
+ if( !pDrView->GetMarkList().GetMarkCount() ||
+ ( !pDrView->IsTextEdit() && !pDrView->GetStyleSheet() )
+ )
rSet.DisableItem( nWhich );
}
break;