On 04/26/2018 06:17 PM, 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.
>
> Riki, if this works, I will probably propose to backport to 2.3.2.

OK.

Riki

Reply via email to