[Libreoffice-commits] core.git: sc/source

Steve Yin steve_y at apache.org
Tue Mar 11 03:04:46 PDT 2014


 sc/source/ui/Accessibility/AccessibleDocument.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a96ac994f0fc4fc52dab7a496a8485d3eba10913
Author: Steve Yin <steve_y at apache.org>
Date:   Tue Mar 11 05:53:58 2014 +0000

    Resolves: #i123622# [ia2] Calc: No focus event fired on cell...
    
    when new spreadsheet is created
    
    (cherry picked from commit 572001d5865e4d11523e72a506e9a6eca7f23786)
    
    Change-Id: I10212bf9ddeb9eb06c1d9105951a5eb9d8578029

diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 40b0f77..9f2db91 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -1648,6 +1648,8 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
 
                     if (mpAccessibleSpreadsheet)
                         mpAccessibleSpreadsheet->BoundingBoxChanged();
+                    if (mpAccessibleSpreadsheet && mpViewShell->IsActive())
+                        mpAccessibleSpreadsheet->FireFirstCellFocus();
                 }
                 else if (mpAccessibleSpreadsheet)
                 {
@@ -2260,7 +2262,6 @@ uno::Reference < XAccessible >
         mpAccessibleSpreadsheet->acquire();
         mpAccessibleSpreadsheet->Init();
         mbCompleteSheetSelected = IsTableSelected();
-        mpAccessibleSpreadsheet->FireFirstCellFocus(); // i123622
     }
     return mpAccessibleSpreadsheet;
 }


More information about the Libreoffice-commits mailing list