From 711e56ad3a576403f215d0b9c676ed8794232e23 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sun, 15 Aug 2010 15:27:46 +0000 Subject: [PATCH] [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 --- PowerEditor/src/Notepad_plus.cpp | 4 ++-- PowerEditor/src/NppIO.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index eae0a57a9..524984ac6 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -284,8 +284,8 @@ LRESULT Notepad_plus::init(HWND hwnd) //--Status Bar Section--// bool willBeShown = nppGUI._statusBarShow; _statusBar.init(_pPublicInterface->getHinst(), hwnd, 6); - _statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 250); - _statusBar.setPartWidth(STATUSBAR_CUR_POS, 300); + _statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 170); + _statusBar.setPartWidth(STATUSBAR_CUR_POS, 380); _statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 80); _statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 100); _statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30); diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 7d207c3ce..fdaca5a6d 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -626,7 +626,7 @@ bool Notepad_plus::fileSave(BufferID id) const TCHAR *fn = buf->getFullPathName(); if (buf->isUntitled()) { - return fileSaveAs(id); + return fileSaveAs(bufferID); } else { @@ -1042,7 +1042,7 @@ const TCHAR * Notepad_plus::fileSaveSession(size_t nbFile, TCHAR ** fileNames, c if (sessionFile2save) { Session currentSession; - if ((nbFile) && (!fileNames)) + if ((nbFile) && (fileNames)) { for (size_t i = 0 ; i < nbFile ; i++) {