Opened 22 years ago

Closed 21 years ago

Last modified 21 years ago

#550 closed defect (fixed)

change environment depth deselects selection

Reported by: levon Owned by: Lars Gullik Bjønnes
Priority: high Milestone:
Component: lyxtext Version: 1.2.1
Severity: normal Keywords: ui VERIFIED
Cc: jug@…

Description

From: Daniel Sattler <daniel.sattler@…>

Using Lyx 1.1.6fix4 I could mark several paragraphs and change their
depth multiple times by using the toolbar icon. The paragraphs still got
marked after pressing it.

Using Lyx 1.2.0 this won't work. After each change I've got to mark the
paragraphs again. That's really boring.

Change History (3)

comment:1 by levon, 22 years ago

Cc: jug@… added
Keywords: ui added

613 we have to reset the selection, because the
614
geometry could have changed
615 setCursor(bview, selection.start.par(), selection.start.pos());
616 selection.cursor = cursor;
617 setCursor(bview, selection.end.par(), selection.end.pos());
618 updateCounters(bview);
619 clearSelection();
620 setSelection(bview);
621 setCursor(bview, tmpcursor.par(), tmpcursor.pos());

I don't follow this code ... can we work around it ?

comment:2 by levon, 21 years ago

Resolution: fixed
Status: newclosed

Well, I don't know what the clearSelection() was there for, but
I couldn't reproduce a regression by removing it.

comment:3 by levon, 21 years ago

Keywords: VERIFIED added
Note: See TracTickets for help on using tickets.