On 26-Jul-2001 Michael Schmitt wrote:

> I get these warnings in getLyxText in so many different backtraces that I
> think it is worth annoying you another time :-)

Sure!

>       UMR: Uninitialized memory read
>       This is occurring while in:
>             InsetText::getLyXText(const BufferView*,bool)const
> [insettext.C:1804]
>                                        return
> the_locking_inset->getLyXText(bv);
>                                }
>                                return cached_text.get();
>             =>         } else if (it->second.remove) {

Does this fix it? (it should!)

           Jürgen

------------------------------------------------------------------------------
Index: insettext.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettext.C,v
retrieving revision 1.182
diff -u -p -u -r1.182 insettext.C
--- insettext.C 2001/07/25 19:45:21     1.182
+++ insettext.C 2001/07/26 12:15:04
@@ -1801,7 +1801,7 @@ LyXText * InsetText::getLyXText(BufferVi
                        return the_locking_inset->getLyXText(bv);
                }
                return cached_text.get();
-       } else if (it->second.remove) {
+       } else if (it != cache.end() && it->second.remove) {
                if (locked) {
                        saveLyXTextState(it->second.text.get());
                } else {
-------------------------------------------------------------------------

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

The fact that boys are allowed to exist at all is evidence of a remarkable
Christian forbearance among men.
                -- Ambrose Bierce

Reply via email to