diff options
| author | nyamatongwe <unknown> | 2013-03-15 20:12:24 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2013-03-15 20:12:24 +1100 | 
| commit | 39afe073dae7d7bb6058ab0a3c86c661381f14b6 (patch) | |
| tree | d4f3af819379fd0d45da336ffbd375b6378eaa45 | |
| parent | ba75aab7359d5edaa7a37b9e21f3219bf9683c71 (diff) | |
| download | scintilla-mirror-39afe073dae7d7bb6058ab0a3c86c661381f14b6.tar.gz | |
Ensure all fields initialised.
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 14 | 
1 files changed, 9 insertions, 5 deletions
| diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index fa361df01..a80361ce4 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -383,6 +383,15 @@ ScintillaCocoa::ScintillaCocoa(NSView* view)  {    wMain = view; // Don't retain since we're owned by view, which would cause a cycle    timerTarget = [[TimerTarget alloc] init: this]; +  lastMouseEvent = NULL; +  notifyObj = NULL; +  notifyProc = NULL; +  capturedMouse = false; + +  scrollSpeed = 1; +  scrollTicks = 2000; +  tickTimer = NULL; +  idleTimer = NULL;    observer = NULL;    layerFindIndicator = NULL;    Initialise(); @@ -405,11 +414,6 @@ void ScintillaCocoa::Initialise()  {    Scintilla_LinkLexers(); -  notifyObj = NULL; -  notifyProc = NULL; -   -  capturedMouse = false; -      // Tell Scintilla not to buffer: Quartz buffers drawing for us.    WndProc(SCI_SETBUFFEREDDRAW, 0, 0); | 
