mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-04-08 17:15:37 +02:00
[BUG_FIXED] Fix a file detection bug on opening file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@901 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
71e2f0c9e3
commit
74084db9a8
File diff suppressed because it is too large
Load Diff
@ -862,7 +862,7 @@ int Notepad_plus::getHtmlXmlEncoding(const TCHAR *fileName) const
|
|||||||
NppParameters *pNppParamInst = NppParameters::getInstance();
|
NppParameters *pNppParamInst = NppParameters::getInstance();
|
||||||
LangType langT = pNppParamInst->getLangFromExt(ext);
|
LangType langT = pNppParamInst->getLangFromExt(ext);
|
||||||
|
|
||||||
if (langT != L_XML && langT != L_HTML && langT == L_PHP)
|
if ((langT != L_XML) && (langT != L_HTML))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
// Get the begining of file data
|
// Get the begining of file data
|
||||||
|
@ -622,13 +622,6 @@ private:
|
|||||||
return randomNumber;
|
return randomNumber;
|
||||||
return (rand() % rangeMax);
|
return (rand() % rangeMax);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
static int getRandomNumber(int rangeMax) {
|
|
||||||
srand((unsigned int)time(NULL));
|
|
||||||
return ((int)((double)rand() / ((double)RAND_MAX + 1) * rangeMax));
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user