[BUG_FIXED] Fix the find in files crash bug while cloned views are side by side and focus is on main view. (walkaround).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@400 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
2e1806bd34
commit
048e3b9471
|
@ -1573,6 +1573,17 @@ bool Notepad_plus::findInFiles()
|
||||||
bool isRecursive = _findReplaceDlg.isRecursive();
|
bool isRecursive = _findReplaceDlg.isRecursive();
|
||||||
bool isInHiddenDir = _findReplaceDlg.isInHiddenDir();
|
bool isInHiddenDir = _findReplaceDlg.isInHiddenDir();
|
||||||
int nbTotal = 0;
|
int nbTotal = 0;
|
||||||
|
|
||||||
|
// For unknown reason, find in files crashes
|
||||||
|
// when focus is on main view while cloned document is side by side.
|
||||||
|
// To avoid from crash, the temporary solution is set sub view as focused window
|
||||||
|
// WALKAROUND
|
||||||
|
if (_mainEditView.getCurrentBuffer()->getDocument() == _subEditView.getCurrentBuffer()->getDocument())
|
||||||
|
{
|
||||||
|
switchEditViewTo(SUB_VIEW);
|
||||||
|
}
|
||||||
|
// DNUORAKLAW
|
||||||
|
|
||||||
ScintillaEditView *pOldView = _pEditView;
|
ScintillaEditView *pOldView = _pEditView;
|
||||||
_pEditView = &_invisibleEditView;
|
_pEditView = &_invisibleEditView;
|
||||||
Document oldDoc = _invisibleEditView.execute(SCI_GETDOCPOINTER);
|
Document oldDoc = _invisibleEditView.execute(SCI_GETDOCPOINTER);
|
||||||
|
|
Loading…
Reference in New Issue