On 02-Jul-2001 Jean-Marc Lasgouttes wrote:

> Juergen> 100% save #:O)
> 
> Even when setParagraphData has been called?

Ah,...,hmmm, well let's see after we do

diff -u -p -r1.157 insettext.C
--- src/insets/insettext.C      2001/06/29 06:30:52     1.157
+++ src/insets/insettext.C      2001/07/02 15:09:27
@@ -118,6 +119,7 @@ InsetText::~InsetText()
 {
        // delete all instances of LyXText before deleting the paragraps used
        // by it.
+       cached_bview = 0;
        for (Cache::iterator cit = cache.begin(); cit != cache.end(); ++cit) {
                delete (*cit).second;
                (*cit).second = 0;
@@ -135,6 +137,7 @@ void InsetText::clear()
 {
        // delete all instances of LyXText before deleting the paragraps used
        // by it.
+       cached_bview = 0;
        for (Cache::iterator cit = cache.begin(); cit != cache.end(); ++cit) {
                delete (*cit).second;
                (*cit).second = 0;
@@ -1479,6 +1482,7 @@ void InsetText::setParagraphData(Paragra
 {
        // delete all instances of LyXText before deleting the paragraps used
        // by it.
+       cached_bview = 0;
        for (Cache::iterator cit = cache.begin(); cit != cache.end(); ++cit){
                delete (*cit).second;
                (*cit).second = 0;

On that patched version it should be 100%.

You got me right on the spot #:O)!

        Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
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
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

If the facts don't fit the theory, change the facts.
                -- Albert Einstein

Reply via email to