aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-08-28 00:27:24 +0000
committerrowanbeentje <rowan@beent.je>2013-08-28 00:27:24 +0000
commit259750a6d667e755cbe1b0193463f3c5133fdf20 (patch)
treec7a5300ce3455cc50cb8d4d3c5afe5923f4b556d
parent110ffbf58c596add5dfd1d71e7777f90b2a84c00 (diff)
downloadsequelpro-259750a6d667e755cbe1b0193463f3c5133fdf20.tar.gz
sequelpro-259750a6d667e755cbe1b0193463f3c5133fdf20.tar.bz2
sequelpro-259750a6d667e755cbe1b0193463f3c5133fdf20.zip
- Fix an uninitialised value in the custom query line number view which could cause an exception if the window was dragged very quickly near the top of the text view ruler (http://spbug.com/l/2344)
-rw-r--r--Source/NoodleLineNumberView.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/NoodleLineNumberView.m b/Source/NoodleLineNumberView.m
index 39b435f7..1d58bbed 100644
--- a/Source/NoodleLineNumberView.m
+++ b/Source/NoodleLineNumberView.m
@@ -85,6 +85,7 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range);
maxHeightOfGlyph = s.height;
[self updateGutterThicknessConstants];
currentRuleThickness = 0.0f;
+ dragSelectionStartLine = NSNotFound;
// Cache loop methods for speed
lineNumberForCharacterIndexSel = @selector(lineNumberForCharacterIndex:);