diff options
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index fac9a0bc1..be8987083 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1523,7 +1523,7 @@ void ScintillaCocoa::SetVerticalScrollPos()    // Convert absolute coordinate into the range [0..1]. Keep in mind that the visible area    // does *not* belong to the scroll range.    int maxScrollPos = MaxScrollPos(); -  float relativePosition = (maxScrollPos > 0) ? ((float) topLine / maxScrollPos) : 0f; +  float relativePosition = (maxScrollPos > 0) ? ((float) topLine / maxScrollPos) : 0.0f;    [topContainer setVerticalScrollPosition: relativePosition];  } | 
