[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-ebc06183d4e3remotes/trunk
parent
29143b3d6c
commit
711e56ad3a
|
@ -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);
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue