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

« back to all changes in this revision

Viewing changes to src/lib/FormatIOExecutable.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:
130
130
                        nWritten = fwrite(szBuffer, 1, (size_t)(nStandaloneOffset-nTotal), pOut);
131
131
                        break;
132
132
                }
133
 
                else{           
 
133
                else{
134
134
                        nWritten = fwrite(szBuffer, 1, nRead, pOut);
135
135
                        nTotal += nRead;
136
136
                }
153
153
        exporter.SetPassword(strPass.c_str());
154
154
        int nRes = exporter.Save(szFile, doc, true);
155
155
        if(DOC_SAVE_OK != nRes){
156
 
                remove(szFile); //remove output file on error   
 
156
                remove(szFile); //remove output file on error
157
157
                return nRes;
158
158
        }
159
159
 
183
183
 
184
184
        return DOC_SAVE_OK;
185
185
}
186