Browse Source

[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
remotes/trunk
Don Ho 13 years ago
parent
commit
74084db9a8
  1. 1242
      PowerEditor/installer/APIs/python.xml
  2. 2
      PowerEditor/src/Notepad_plus.cpp
  3. 7
      PowerEditor/src/Notepad_plus.h

1242
PowerEditor/installer/APIs/python.xml

File diff suppressed because it is too large Load Diff

2
PowerEditor/src/Notepad_plus.cpp

@ -862,7 +862,7 @@ int Notepad_plus::getHtmlXmlEncoding(const TCHAR *fileName) const
NppParameters *pNppParamInst = NppParameters::getInstance();
LangType langT = pNppParamInst->getLangFromExt(ext);
if (langT != L_XML && langT != L_HTML && langT == L_PHP)
if ((langT != L_XML) && (langT != L_HTML))
return -1;
// Get the begining of file data

7
PowerEditor/src/Notepad_plus.h

@ -622,13 +622,6 @@ private:
return randomNumber;
return (rand() % rangeMax);
};
/*
static int getRandomNumber(int rangeMax) {
srand((unsigned int)time(NULL));
return ((int)((double)rand() / ((double)RAND_MAX + 1) * rangeMax));
};
*/
};

Loading…
Cancel
Save