From 194882dd0b6474f22a8629f89e57409880e6a5a6 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 17 Mar 2010 23:37:58 +0000 Subject: [PATCH] [UPDATE] minor modification. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@625 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 1 - PowerEditor/src/Notepad_plus.h | 5 ----- PowerEditor/src/NppCommands.cpp | 15 +++++++++------ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 6d78f920..bc4c0f6b 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -63,7 +63,6 @@ Notepad_plus::Notepad_plus(): Window(), _mainWindowStatus(0), _pDocTab(NULL), _p TiXmlDocument *toolIconsDocRoot = (NppParameters::getInstance())->getToolIcons(); - if (toolIconsDocRoot) { _toolBar.initTheme(toolIconsDocRoot); diff --git a/PowerEditor/src/Notepad_plus.h b/PowerEditor/src/Notepad_plus.h index b165245f..b9b5987c 100644 --- a/PowerEditor/src/Notepad_plus.h +++ b/PowerEditor/src/Notepad_plus.h @@ -115,10 +115,6 @@ #define MENU 0x01 #define TOOLBAR 0x02 -namespace Translator { - -} - #define URL_REG_EXPR "[A-Za-z]+://[A-Za-z0-9_\\-\\+~.:?&@=/%#,;\\{\\}\\(\\)\\[\\]\\|\\*\\!\\\\]+" enum FileTransferMode { @@ -292,7 +288,6 @@ private: AutoCompletion _autoCompleteSub; //each Scintilla has its own autoComplete SmartHighlighter _smartHighlighter; - //TiXmlNode *_toolIcons; NativeLangSpeaker _nativeLangSpeaker; DocTabView _mainDocTab; DocTabView _subDocTab; diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 16e0c354..0faf27d9 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -905,10 +905,12 @@ void Notepad_plus::command(int id) case IDM_VIEW_SYNSCROLLV: { - _syncInfo._isSynScollV = !_syncInfo._isSynScollV; - checkMenuItem(IDM_VIEW_SYNSCROLLV, _syncInfo._isSynScollV); - _toolBar.setCheck(IDM_VIEW_SYNSCROLLV, _syncInfo._isSynScollV); + bool isSynScollV = !_syncInfo._isSynScollV; + + checkMenuItem(IDM_VIEW_SYNSCROLLV, isSynScollV); + _toolBar.setCheck(IDM_VIEW_SYNSCROLLV, isSynScollV); + _syncInfo._isSynScollV = isSynScollV; if (_syncInfo._isSynScollV) { int mainCurrentLine = _mainEditView.execute(SCI_GETFIRSTVISIBLELINE); @@ -921,10 +923,11 @@ void Notepad_plus::command(int id) case IDM_VIEW_SYNSCROLLH: { - _syncInfo._isSynScollH = !_syncInfo._isSynScollH; - checkMenuItem(IDM_VIEW_SYNSCROLLH, _syncInfo._isSynScollH); - _toolBar.setCheck(IDM_VIEW_SYNSCROLLH, _syncInfo._isSynScollH); + bool isSynScollH = !_syncInfo._isSynScollH; + checkMenuItem(IDM_VIEW_SYNSCROLLH, isSynScollH); + _toolBar.setCheck(IDM_VIEW_SYNSCROLLH, isSynScollH); + _syncInfo._isSynScollH = isSynScollH; if (_syncInfo._isSynScollH) { int mxoffset = _mainEditView.execute(SCI_GETXOFFSET);