diff options
Diffstat (limited to 'sc/source/ui/view/cellsh.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index b432808cbebc..40e9c650f0a7 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -372,14 +372,7 @@ void ScCellShell::GetCellState( SfxItemSet& rSet ) { ScAddress aPos( GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() ); // Allow editing annotation by Id (without selecting the cell) for LOK - if( isLOKNoTiledAnnotations || rDoc.GetNote(aPos) ) - { - bDisable = false; - } - else - { - bDisable = true; - } + bDisable = !(isLOKNoTiledAnnotations || rDoc.GetNote(aPos)); } break; } |