Jean-Marc Lasgouttes wrote:
> Le 20/03/2018 ?? 16:57, Pavel Sanda a écrit :
>> This is already huge improvement to the current situation.
>> It might still make sense to decrease little bit, I can try
>> different patch if you have another variant at hand.
>
> This, for example. I am not sure how robust it is, but it seems to work.

The power of the second patch proved itself as I was able to immediately spot
nesting error in my equation which was not apparent after playing with it last
20 mins with normal cursors. 

If it was on me, I'd say the second is better, but I think we need to get
opinion of others as well. The cursor gets really small on complex equations
and while I like it exactness it could be considered way too small by less
obsessive folks than I am...

Unf I also am getting assertion when navigating through complex fractions
and scrolling with mouse wheel at the same time.
Not sure whether your patch is involved.

CoordCache.cpp (30): break on pointer: 0x5555570ad3a0 hint: dim size: 0
#0  lyx::lyxbreaker (data=data@entry=0x555557374de0, 
hint=hint@entry=0x555555dad61d "dim", size=0)
    at CoordCache.cpp:31
#1  0x00005555559844fc in lyx::CoordCacheBase<lyx::MathData>::checkDim 
(hint=0x555555dad61d "dim", 
    thing=0x555557374de0, this=0x5555583236e8) at ./CoordCache.h:151
#2  lyx::CoordCacheBase<lyx::MathData>::dim (thing=0x555557374de0, 
this=0x5555583236e8) at ./CoordCache.h:95
#3  lyx::MathData::dimension (this=0x555557374de0, bv=...) at 
mathed/MathData.cpp:895
#4  0x00005555558f57a2 in lyx::BufferView::caretPosAndHeight 
(this=0x555558323270, p=..., 
    h=h@entry=@0x7fffffffd3dc: 0) at BufferView.cpp:2971
#5  0x0000555555b8beff in 
lyx::frontend::GuiWorkArea::Private::updateCaretGeometry (this=0x55555831a290)
    at GuiWorkArea.cpp:601
#6  0x0000555555b8c520 in lyx::frontend::GuiWorkArea::scheduleRedraw 
(this=0x5555583188d0, 
    update_metrics=<optimized out>) at GuiWorkArea.cpp:476
#7  0x0000555555b33dc5 in lyx::frontend::WorkAreaManager::redrawAll 
(this=0x555556f53ec0, 
    update_metrics=update_metrics@entry=false) at WorkAreaManager.cpp:38
#8  0x00005555556d6bb9 in lyx::Buffer::changed (this=<optimized out>, 
    update_metrics=update_metrics@entry=false) at Buffer.cpp:662
#9  0x00005555558f8865 in lyx::BufferView::processUpdateFlags 
(this=this@entry=0x555558323270, 
    flags=<optimized out>, flags@entry=lyx::Update::Force) at BufferView.cpp:545
#10 0x00005555558f97bc in lyx::BufferView::scrollDocView (this=0x555558323270, 
value=value@entry=-84, 
    update=update@entry=true) at BufferView.cpp:660
#11 0x0000555555b8cfc4 in lyx::frontend::GuiWorkArea::scrollTo 
(this=0x5555583188d0, value=-84)
    at GuiWorkArea.cpp:677


Pavel

Reply via email to