Revision: 18392
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18392&view=rev
Author: hofman
Date: 2012-01-10 13:28:10 +0000 (Tue, 10 Jan 2012)
Log Message:
-----------
variable for marker rect
Modified Paths:
--------------
trunk/bibdesk/BDSKLineNumberView.m
Modified: trunk/bibdesk/BDSKLineNumberView.m
===================================================================
--- trunk/bibdesk/BDSKLineNumberView.m 2012-01-10 12:57:22 UTC (rev 18391)
+++ trunk/bibdesk/BDSKLineNumberView.m 2012-01-10 13:28:10 UTC (rev 18392)
@@ -207,7 +207,7 @@
NSPointerArray *lines = [self lineCharacterIndexes];
NSUInteger rectCount, i, line, count = [lines count];
NSRulerMarker *marker;
- NSRect rect;
+ NSRect rect, markerRect = NSMakeRect(1.0, 0.0, MARKER_THICKNESS,
MARKER_THICKNESS);
// one extra for any newline at the end, which doesn't have a glyph
range.length++;
@@ -221,9 +221,9 @@
rects = [lm rectArrayForCharacterRange:NSMakeRange(i, 0)
withinSelectedCharacterRange:nullRange inTextContainer:container
rectCount:&rectCount];
if (rectCount > 0) {
if (errorMarkers && (marker = NSMapGet(errorMarkers,
(const void *)line))) {
- rect = NSMakeRect(1.0, offsetY + NSMidY(rects[0]) -
0.5 * MARKER_THICKNESS, MARKER_THICKNESS, MARKER_THICKNESS);
- [[marker image] drawFlipped:[self isFlipped]
inRect:rect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
- [self addToolTipRect:rect owner:self userData:(void
*)line];
+ markerRect.origin.y = offsetY + NSMidY(rects[0]) - 0.5
* MARKER_THICKNESS;
+ [[marker image] drawFlipped:[self isFlipped]
inRect:markerRect fromRect:NSZeroRect operation:NSCompositeSourceOver
fraction:1.0];
+ [self addToolTipRect:markerRect owner:self
userData:(void *)line];
}
label = [NSString stringWithFormat:@"%lu", (unsigned
long)(line + 1)];
labelSize = [label
sizeWithAttributes:lineNumberAttributes];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit