From b8d129bdad166d708a8d1b5d5f3b040a09a3a314 Mon Sep 17 00:00:00 2001 From: "Faisal M. Al-Otaibi" Date: Wed, 11 Jul 2012 14:46:13 +0300 Subject: [PATCH] fdo#51966 Format brush tool moves selection anchor to a random cell Change-Id: I93f6369b54d8ec05d6244defac02368b298be460 --- sc/source/ui/view/formatsh.cxx | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index 7d2cd76..54f3984 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx @@ -2159,6 +2159,8 @@ void ScFormatShell::StateFormatPaintbrush( SfxItemSet& rSet ) rSet.DisableItem( SID_FORMATPAINTBRUSH ); else rSet.Put( SfxBoolItem( SID_FORMATPAINTBRUSH, pViewData->GetView()->HasPaintBrush() ) ); + ScViewFunc* pView = pViewData->GetView(); + pView->Unmark(); } short ScFormatShell::GetCurrentNumberFormatType() -- 1.7.7.6