Jean-Marc Lasgouttes wrote:
> Le 27/04/2018 ?? 00:13, Jean-Marc Lasgouttes a écrit :
>> commit 90cfe4ec3b4ff22ef798a63e98ca70d0d33a1656
>> Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
>> Date:   Fri Apr 27 00:03:48 2018 +0200
>>      Adapt caret height to context in mathed.
>>           Compute a height from current font and current cell vertical
>>      dimensions in MathData::metrics(), because this is where current font
>>      is known.
>>           Introduce BufferView::setCaretAscentDescent to remember this 
>> value.
>>           This mechanism is not used for text because Cursor::current_font 
>> is
>>      restored by undo, and the caret height would not be changed then. But
>>      in principle it is doable.
>
> Pavel, please test this new code. It should get the cursor size right 
> without crashing of changing bizarrely the current font.

Limited testing shows no crash. As said previously cursor is much better now,
though I would suggest use of 'b' instead of 'x' min height, e.g. try "\dot u"
in mathed and compare both versions.

Pavel

Reply via email to