[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Undo.cpp: m_viewstates.size() < 0 ?

From: Oto BREZINA <otik_at_printflow.eu>
Date: Thu, 07 Apr 2011 22:37:40 +0200

On 2011-04-07 22:23, Stefan Küng wrote:
> On 06.04.2011 22:05, Oto BREZINA wrote:
>> Stefan,
>>
>> in Undo.cpp is this code
>> if (m_viewstates.size()< m_originalstate)
>> // Can never get back to original state now
>> m_originalstate = 1; // size() is always a multiple of 3
>>
>> What is it for ? How can be m_viewstates.size()< 0 ?
> It's not viewstate.size() that's< 0 but the m_originalstate.
> And if m_originalstate is set to -1, then that means that no undo can
> make the file marked as 'not modified' anymore.
I got it, TNX :) I missed MarkAsOriginalState() change m_originalstate ....

> Stefan
>

-- 
Oto BREZINA, Printflow s.r.o., EU
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2717812
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-08 08:19:46 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.