+2000-07-11 Juergen Vigna <jug@sad.it>
+
+ * src/screen.C (ToggleSelection): fixed toggle selection bug as
+ the bool param should not be last.
+
2000-07-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* sigc++/configure.in: fix bug in threading-related code (Yes, I
} else {
locked = false;
if (need_update == CURSOR) {
- bv->screen()->ToggleSelection(TEXT(bv), y, x, true);
+ bv->screen()->ToggleSelection(TEXT(bv), true, y, x);
TEXT(bv)->ClearSelection();
TEXT(bv)->sel_cursor = TEXT(bv)->cursor;
}
/// returns 1 if first has changed, otherwise 0
bool FitManualCursor(LyXText *, long, long, int, int);
///
- void ToggleSelection(LyXText *, int y_offset = 0, int x_offset = 0,
- bool = true);
+ void ToggleSelection(LyXText *, bool = true, int y_offset = 0,
+ int x_offset = 0);
///
void ToggleToggle(LyXText *, int y_offset = 0, int x_offset = 0);
}
-void LyXScreen::ToggleSelection(LyXText * text, int y_offset, int x_offset,
- bool kill_selection)
+void LyXScreen::ToggleSelection(LyXText * text, bool kill_selection,
+ int y_offset, int x_offset)
{
// only if there is a selection
if (!text->selection) return;