+ fix: minor changes

This commit is contained in:
Rainer Kottenhoff 2018-03-06 14:05:50 +01:00
parent 037190aaa6
commit ac18c60b3a

View File

@ -5262,8 +5262,8 @@ BOOL Style_SelectFont(HWND hwnd,LPWSTR lpszStyle,int cchStyle, LPCWSTR sLexerNam
}
}
else {
fFontSize = (float)(((int)(fFontSize * 100 + 0.5)) / 100.0);
fNewFontSize = (float)(((int)(fNewFontSize * 100 + 0.5)) / 100.0);
fFontSize = (float)(((int)(fFontSize * 100.0 + 0.5)) / 100.0);
fNewFontSize = (float)(((int)(fNewFontSize * 100.0 + 0.5)) / 100.0);
if (fNewFontSize == fFontSize) {
if (StrStrI(lpszStyle, L"size:")) {
if (HasFractionCent(fNewFontSize))