[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 07 Apr 2011 22:23:56 +0200

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.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2717804
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-07 22:24:07 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.