diff options
Diffstat (limited to 'sc/source/ui/view/tabvwsha.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index af5cd662785c..5e8ae2a28b97 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -191,21 +191,12 @@ void ScTabViewShell::GetState( SfxItemSet& rSet ) break; case SID_DELETE_PRINTAREA: - if ( nTabSelCount > 1 ) - { - // #i22589# also take "Print Entire Sheet" into account here - bool bHas = false; - for (SCTAB i=0; !bHas && i<nTabCount; i++) - bHas = rMark.GetTableSelect(i) && (pDoc->GetPrintRangeCount(i) || pDoc->IsPrintEntireSheet(i)); - if (!bHas) - rSet.DisableItem( nWhich ); - } - else if ( !pDoc->GetPrintRangeCount( nTab ) && !pDoc->IsPrintEntireSheet( nTab ) ) - rSet.DisableItem( nWhich ); if ( pDocShell && pDocShell->IsDocShared() ) { rSet.DisableItem( nWhich ); } + else if (pDoc->IsPrintEntireSheet(nTab)) + rSet.DisableItem(nWhich); break; case SID_STATUS_PAGESTYLE: |