[BUG_FIXED] (Author: Dave Brotherstone) Fix SaveSession bug.

[UPDATE] Resize the section of status bar.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@649 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2010-08-15 15:27:46 +00:00
parent 29143b3d6c
commit 711e56ad3a
2 changed files with 4 additions and 4 deletions

View File

@ -284,8 +284,8 @@ LRESULT Notepad_plus::init(HWND hwnd)
//--Status Bar Section--// //--Status Bar Section--//
bool willBeShown = nppGUI._statusBarShow; bool willBeShown = nppGUI._statusBarShow;
_statusBar.init(_pPublicInterface->getHinst(), hwnd, 6); _statusBar.init(_pPublicInterface->getHinst(), hwnd, 6);
_statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 250); _statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 170);
_statusBar.setPartWidth(STATUSBAR_CUR_POS, 300); _statusBar.setPartWidth(STATUSBAR_CUR_POS, 380);
_statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 80); _statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 80);
_statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 100); _statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 100);
_statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30); _statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30);

View File

@ -626,7 +626,7 @@ bool Notepad_plus::fileSave(BufferID id)
const TCHAR *fn = buf->getFullPathName(); const TCHAR *fn = buf->getFullPathName();
if (buf->isUntitled()) if (buf->isUntitled())
{ {
return fileSaveAs(id); return fileSaveAs(bufferID);
} }
else else
{ {
@ -1042,7 +1042,7 @@ const TCHAR * Notepad_plus::fileSaveSession(size_t nbFile, TCHAR ** fileNames, c
if (sessionFile2save) if (sessionFile2save)
{ {
Session currentSession; Session currentSession;
if ((nbFile) && (!fileNames)) if ((nbFile) && (fileNames))
{ {
for (size_t i = 0 ; i < nbFile ; i++) for (size_t i = 0 ; i < nbFile ; i++)
{ {