Round line height (fix #560, #561)

This commit is contained in:
1024jp 2016-05-19 20:22:26 +09:00
parent 97a303d651
commit d99e388cfb
2 changed files with 4 additions and 2 deletions

View File

@ -18,8 +18,10 @@ develop
### Fixes
- Fix an issue where hanging indent was applied when document style is changed even it is turned off.
- Fix an issue where the current line highlight didn't update under the specific condition.
- Fix an issue where editor area was not focused when document opens.
- Fix an issue where the current line highlight didn't update under the specific condition.
- Fix an issue where unwanted dirt was drawn if use the Google Japanese Input.
- Fix an issue where selection highlight remained between lines under specific conditions.
- Fix an issue where custom syntax style/theme couldn't be removed from the style list if the definition file is already deleted.
- Fix an issue where “Copy as Rich Text” was enabled even if no text is selected.
- Fix an issue where file path display in inspector was not updated when document file is moved.

View File

@ -327,7 +327,7 @@ static NSString *HiraginoSansName;
{
CGFloat lineSpacing = [(NSTextView<CETextViewProtocol> *)[self firstTextView] lineSpacing];
return ([self defaultLineHeight] + lineSpacing * [[self textFont] pointSize]);
return round([self defaultLineHeight] + lineSpacing * [[self textFont] pointSize]);
}