Fix visibility of invisible characters (fix #545)

This commit is contained in:
1024jp 2016-04-28 16:13:18 +09:00
parent 3d87b8b7c5
commit 8bc4181cc0
2 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,15 @@
Change Log
==========================
develop
--------------------------
### Fixes
- Fix an issue where invisible characters could not be hide.
2.5.1 (120)
--------------------------

View File

@ -179,7 +179,7 @@ static NSString *HiraginoSansName;
}
// draw invisibles
if ([self showsInvisibles] || [[self invisibleLines] count] > 0) {
if ([self showsInvisibles] && [[self invisibleLines] count] > 0) {
CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
NSString *completeString = [[self textStorage] string];
CGFloat baselineOffset = [self defaultBaselineOffsetForFont:[self textFont]];