Lars Gullik Bjønnes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:

| Georg Baum wrote:
| > Am Sonntag, 9. Juli 2006 12:35 schrieb Edwin Leuven:
| >> on inserting greek math symbol using the keyboard shortcuts
| >>
| >> also hangs when inserting partial in a fraction, etc.
| >>
| >> gives me these error messages in the console:
| >>
| >> QObject::killTimer: timers cannot be stopped from another thread
| > I get
| > Assertion triggered in Point::Point(int, int) by failing check "x <
| > 1000000" in file ../../src/coordcache.h:37
| > when typing \partial<space> in an empty math inset. qt3 works.
| > Backtrace:
| [...]
| | > The reason for this assertion is usually a cold coord cache, but why
| > only in qt4?
| | Well, the order of calls to BufferView::update() among the different
| calls in the frontend might not be the same for qt4 due to my API
| cleanup.

Could it be related to my changes in BufferView::update that makes us
only run updateMetrics if a redraw is requested?
(From what I see that could very well be the case?)

Yes, I think so. But I'd rather fix the origin of the problem because your changes are logic.


I'll run some tests.


This patch fixes the crash and the bug. But I think that there is more to it. I'll commit now if you don't object.

A bdel.


Index: math_symbolinset.C
===================================================================
--- math_symbolinset.C  (revision 14344)
+++ math_symbolinset.C  (working copy)
@@ -26,17 +26,17 @@
 
 
 MathSymbolInset::MathSymbolInset(latexkeys const * l)
-       : sym_(l), h_(0)
+       : sym_(l), h_(0), width_(0)
 {}
 
 
 MathSymbolInset::MathSymbolInset(char const * name)
-       : sym_(in_word_set(name)), h_(0)
+       : sym_(in_word_set(name)), h_(0), width_(0)
 {}
 
 
 MathSymbolInset::MathSymbolInset(string const & name)
-       : sym_(in_word_set(name.c_str())), h_(0)
+       : sym_(in_word_set(name.c_str())), h_(0), width_(0)
 {}
 
 

Reply via email to