Re: [Fwd: modified documents issue in abiword trunk]

From: Martin Sevior <msevior_at_gmail.com>
Date: Tue Oct 26 2010 - 00:56:18 CEST

HI Jean,

Thanks for the reminder. I just committed a fix. It was simple enough
I just put the m_pPieceTable->setClean(); call back in the method. I
should never have removed it.

The code is now.

void PD_Document::_setClean(void)
 {
       m_pPieceTable->setClean();
       _setForceDirty(false);
 }

Cheers

Martin

On Tue, Oct 26, 2010 at 9:27 AM, Martin Sevior <msevior@gmail.com> wrote:
> HI Jean,
>
> Thanks very much! I'll see if I can fix it today.
>
> Cheers
>
> Martin
>
> On Tue, Oct 26, 2010 at 12:01 AM, Jean Brefort
> <jean.brefort@normalesup.org> wrote:
>> Should have cced the list, sorry
>>
>>
>> ---------- Forwarded message ----------
>> From: Jean Brefort <jean.brefort@normalesup.org>
>> To: Martin Sevior <msevior@physics.unimelb.edu.au>
>> Date: Mon, 25 Oct 2010 15:00:24 +0200
>> Subject: modified documents issue in abiword trunk
>> Hi Martin,
>>
>> Since some times, saving a document from abiword trunk does not anymore
>> remove the dirty property of the document. I could track the issue to
>> revision 27751 (lognpt branch) were you modified the
>> PD_Document::_setClean() method:
>>
>> @@ -1177,8 +1177,6 @@
>>
>>  void PD_Document::_setClean(void)
>>  {
>> -       m_pPieceTable->setClean();
>> -       m_pPieceTable->getFragments().cleanFrags();
>>        _setForceDirty(false);
>>  }
>>
>> Since isDirty() checks if the pt is clean, it always return true if the
>> document has been modified, even if the file has been saved. Should
>> isDirty() be modified to not check the piece table dirtiness anymore?
>>
>> Cheers,
>> Jean
>>
>>
>>
>
Received on Tue Oct 26 00:56:24 2010

This archive was generated by hypermail 2.1.8 : Tue Oct 26 2010 - 00:56:24 CEST