Edwin Leuven wrote: > guys, > > i am (still) fiddling with the tabular code. > > after a cell merge there is a redraw which then *sometimes* crashes lyx. > > the strange thing is that sometimes it happens, sometimes it doesn't! > > backtrace below. > > i haven't been able to find out what causes it, and am really at a loss. > > so if someone has a hunch that would be great cause i am kinda stuck > here... > > patch: > > http://leuven.economists.nl/lyx/tab2.diff > > in case someone wants to try > > thanks, ed. > > > > > std::vector<unsigned long,std::allocator<unsigned long> > ::operator[](unsigned int _Pos=0) Line 741 + 0x17 bytes C++ > > lyx::Paragraph::getChar(int pos=0) Line 286 + 0x1d bytes C++ > > lyx::ParagraphMetrics::singleWidth(int pos=0, const lyx::Font & > font={...}) Line 195 + 0xf bytes C++ > > lyx::TextMetrics::rowBreakPoint(int width=791, const int pit=0, > lyx::Row & row={...}) Line 498 + 0x1b bytes C++ > > lyx::TextMetrics::redoParagraph(const int pit=0) Line 243 C++ > > lyx::TextMetrics::metrics(lyx::MetricsInfo & mi={...}, lyx::Dimension > & dim={...}) Line 156 + 0x10 bytes C++ > > lyx::InsetText::metrics(lyx::MetricsInfo & mi={...}, lyx::Dimension & > dim={...}) Line 180 C++ > > lyx::InsetTabular::metrics(lyx::MetricsInfo & mi={...}, lyx::Dimension > & dim={...}) Line 2654 + 0x5a bytes C++
Does the attached solves it? A/
Index: insets/InsetText.cpp =================================================================== --- insets/InsetText.cpp (revision 19785) +++ insets/InsetText.cpp (working copy) @@ -80,7 +80,7 @@ InsetText::InsetText(BufferParams const & bp) - : drawFrame_(false), frame_color_(Color::insetframe) + : drawFrame_(false), frame_color_(Color::insetframe), wide_inset_(false) { paragraphs().push_back(Paragraph()); paragraphs().back().layout(bp.getTextClass().defaultLayout());