Vincent van Ravesteijn wrote:

no debug symbols here too, but anyway looks like metrics stuff....

#0  0x083b2713 in lyx::TextMetrics::getPitNearY ()
#1  0x083b373c in lyx::TextMetrics::checkInsetHit ()
#2  0x083fc68f in lyx::BufferView::getCoveringInset ()
#3  0x083fc6f8 in lyx::BufferView::getCoveringInset ()
#4  0x0840a69b in lyx::BufferView::mouseEventDispatch ()
#5  0x0881704e in lyx::frontend::GuiWorkArea::dispatch ()


pavel
This is a patch without the crash.

Has anyone an idea how to do this without duplicating all the code from InsetMathHull ?

I somehow want to execute a lot of functions first in some sort of InsetPreview. Like a virtual function with InsetPreview a child of InsetERT, but it can't be really a child, otherwise InsetPreview should be a child of InsetERT and InsetMathHull.

Hum, InsetPreview doesn't have to be an Inset. So both InsetERT and InsetMathHull can inherit InsetPreview in addition to InsetText and InsetMath, without worrying about virtual inheritance. But if you really want InsetPreview to be an Inset, virtual inheritance will do. When you think about it by the way, much of the graphics and external previewing could reuse this InsetPreview....

Abdel.

Reply via email to