Subject: Re: refcounting images
From: Paul Rohr (paul@abisource.com)
Date: Wed Apr 25 2001 - 21:28:58 CDT
At 06:54 PM 4/21/01 +0200, Paolo Molaro wrote:
>On 04/20/01 Paul Rohr wrote:
>> At 04:43 PM 4/20/01 +0200, Paolo Molaro wrote:
>> >What we should fix is this, instead: try to insert an image and
>> >delete it from the document. Save the (empty) document and you will
>> >find the image data there. Repeat a few times and the document
>> >will grow to some MBs quickly. 
>[...]
>>   1.  open a document
>>   2.  do some typing
>>   3.  add an image
>>   4.  do some typing 
>>   5.  remove the image
>>   6.  do some more typing
>>   7.  undo to step 4
>>   8.  undo to step 2
>> 
>> Saves immediately after steps 1, 2, 5, 6, *and 8* should not include that 
>> image.  Saves immediately after steps 3, 4, *and 7* should include it.  
>
>That simplified gets us a nice single rule:
>1) don't save the image if it's not currently present in the document:-)
Yeah.  I was just being extra-explicit to ensure that we didn't fix the 
problem in the wrong place.  ;-)  Sometimes it's easy to forget about undo.
>I just filed a bug about this in bugzilla.
Thanks!
Paul
This archive was generated by hypermail 2b25 : Wed Apr 25 2001 - 21:21:22 CDT