~ubuntu-branches/ubuntu/oneiric/notecase/oneiric

« back to all changes in this revision

Viewing changes to src/lib/FormatIOTxt.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Soyez
  • Date: 2008-11-10 11:29:57 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081110112957-9uu6p24w7i0c7ib2
Tags: 1.9.7-0ubuntu1
* New Upstream Release
* Updated Standards-Version to 3.8.0, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
                //calculate depth info "2.1.5"
80
80
                int nIdxTmp = nIdx;
81
81
                std::string strIndex;
82
 
                char szBuffer[20]; 
 
82
                char szBuffer[20];
83
83
                for(;;)
84
84
                {
85
85
                        NoteNode &note = doc.GetNodeByIdx(nIdxTmp);
93
93
 
94
94
                        // go to parent node
95
95
                        int nPID = note.m_nParentID;
96
 
                        if(nPID < 0)    
 
96
                        if(nPID < 0)
97
97
                                break;
98
98
                        nIdxTmp = doc.GetIdxFromID(nPID);
99
99
                }
120
120
                nRes = fwrite("\n\n", 2, 1, pOutFile);
121
121
                //fprintf(pOutFile, "%s\n\n", theNote.GetText().c_str());
122
122
        }
123
 
        
 
123
 
124
124
        fclose(pOutFile);
125
125
        return DOC_SAVE_OK;
126
126
}
127