// Created: 16.11.97
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
if ( oper != None )
{
wxArrayInt selections;
- int count;
+ int count = 0;
if ( HasMultipleSelection() )
{
count = GetSelections(selections);
}
else
{
- count = 1;
- selections.Add(GetSelection());
+ int sel = GetSelection();
+ if (sel != -1)
+ {
+ count = 1;
+ selections.Add(sel);
+ }
}
for ( int i = 0; i < count; i++ )