When moving the cursor by mouse clicking, the old current_font is
remembered and used when inserting. (Didn't we have this same bug a
long time ago?)

The attached fixes it. This part of the code is a jungle, so does
anyone remember why this may not be a good idea? Otherwise I'll just
commit.

BTW has anyone else noticed that the character panel (text Style ->
Customized) doesn't do anything anymore? Setting emph by ctrl-e
works fine, but from the panel it does nothing.

- Martin
Index: BufferView.cpp
===================================================================
--- BufferView.cpp	(revision 21258)
+++ BufferView.cpp	(working copy)
@@ -1757,6 +1757,7 @@
 		d->cursor_.clearSelection();
 
 	d->cursor_.finishUndo();
+	d->cursor_.setCurrentFont();
 	return update;
 }
 

Reply via email to