Return-Path: X-Original-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CD9B9A1E for ; Thu, 10 May 2012 17:10:42 +0000 (UTC) Received: (qmail 48720 invoked by uid 500); 10 May 2012 17:10:42 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 48692 invoked by uid 500); 10 May 2012 17:10:42 -0000 Mailing-List: contact ooo-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-issues@incubator.apache.org Delivered-To: mailing list ooo-issues@incubator.apache.org Received: (qmail 48681 invoked by uid 99); 10 May 2012 17:10:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 17:10:42 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.123] (HELO sif.zones.apache.org) (140.211.11.123) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 17:10:26 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 860C74887; Thu, 10 May 2012 17:10:06 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 119325] New: Multiple SelectionChanged events with no reason in Calc Date: Thu, 10 May 2012 17:10:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: spreadsheet X-Bugzilla-Component: ui X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: j.tronel@hotmail.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ooo-issues@incubator.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: priority bug_id assigned_to short_desc bug_severity cf_bug_type classification op_sys reporter rep_platform bug_status version component product Message-ID: Content-Type: multipart/alternative; boundary="1336669806.a7ce2330.27437"; charset="us-ascii" X-Bugzilla-URL: https://issues.apache.org/ooo/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --1336669806.a7ce2330.27437 Date: Thu, 10 May 2012 17:10:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://issues.apache.org/ooo/show_bug.cgi?id=119325 Priority: P3 Bug ID: 119325 Assignee: ooo-issues@incubator.apache.org Summary: Multiple SelectionChanged events with no reason in Calc Severity: major Issue Type: DEFECT Classification: Application OS: Windows 7 Reporter: j.tronel@hotmail.fr Hardware: PC Status: UNCONFIRMED Version: OOo 3.3 Component: ui Product: spreadsheet Created attachment 77522 --> https://issues.apache.org/ooo/attachment.cgi?id=77522&action=edit Select cells and click button to display number of events Hello, A SelectionChanged event seems to be triggered several times at a single modification of cell selection in Calc. It even occurs four times (on my system) when I click on an already selected cell!!! Here is a sample Calc file with macros: *************************************** Global count As Integer Sub SelectionChanged(evt) count = count+1 SelectionChanged=true End Sub Sub Display Print count count = 0 End Sub *************************************** count is incremented each time SelectionChanged is executed (on a SelectionChanged event in sheet 1). Display is called by button on the same sheet and shows current value of count, then resets it for further trials. Now, select any cell or cell range (using mouse or keyboard) then click on the button; strange isn't it? If not wrong, I'd expect no event at all when the selection is not changed, and just one when changed. Badly needing that feature, I use this workaround: *************************************** Global ref As String Sub SelectionChanged(evt) If evt.absoluteName = ref then Exit Sub ref = evt.absoluteName 'commands............ End Sub *************************************** (supposing one will only select cells or cell ranges) -- You are receiving this mail because: You are the assignee for the bug. --1336669806.a7ce2330.27437--