Permalink
Browse files

[models] Don't draw borders on selected cells in NICellBackgrounds.

  • Loading branch information...
1 parent 9cfc490 commit aa5420aedc4270f6dd0dd625243306cedf7c3563 @jverkoey committed Sep 18, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/models/src/NICellBackgrounds.m
@@ -321,13 +321,7 @@ - (UIImage *)_imageForFirst:(BOOL)first last:(BOOL)last highlighted:(BOOL)highli
}
CGContextSaveGState(cx);
- if (highlighted && !last) {
- CGRect noBorderContentFrame = NIRectContract(contentFrame, 0, 1);
- [self _applyPathToContext:cx rect:noBorderContentFrame isFirst:first isLast:last];
-
- } else {
- [self _applyPathToContext:cx rect:contentFrame isFirst:first isLast:last];
- }
+ [self _applyPathToContext:cx rect:contentFrame isFirst:first isLast:last];
CGContextFillPath(cx);
CGContextRestoreGState(cx);
@@ -361,7 +355,7 @@ - (UIImage *)_imageForFirst:(BOOL)first last:(BOOL)last highlighted:(BOOL)highli
}
// Draw the cell divider.
- if (!last) {
+ if (!highlighted && !last) {
CGContextSaveGState(cx);
CGContextSetLineWidth(cx, kBorderSize);
CGContextSetStrokeColorWithColor(cx, self.dividerColor.CGColor);

0 comments on commit aa5420a

Please sign in to comment.