diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-25 11:42:40 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-25 11:42:40 +1100 | 
| commit | 50bbd6a2bea15a623d19a8a20c5cb01f8cfbe1bd (patch) | |
| tree | 816f87d781de223418432b915acf39bafef460b0 /cocoa/ScintillaView.mm | |
| parent | 2c20e36f4ec739fd0887aceda589fce2c1757342 (diff) | |
| download | scintilla-mirror-50bbd6a2bea15a623d19a8a20c5cb01f8cfbe1bd.tar.gz | |
Backport: Use generic std::abs instead of abs and fabs.
Backport of changeset 7330:09e5fe965a79.
Diffstat (limited to 'cocoa/ScintillaView.mm')
| -rw-r--r-- | cocoa/ScintillaView.mm | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index d1816a25d..e89b1fdf1 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1342,7 +1342,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context  #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5    zoomDelta += event.magnification * 10.0; -  if (fabs(zoomDelta)>=1.0) { +  if (std::abs(zoomDelta)>=1.0) {      long zoomFactor = static_cast<long>([self getGeneralProperty: SCI_GETZOOM] + zoomDelta);      [self setGeneralProperty: SCI_SETZOOM parameter: zoomFactor value:0];      zoomDelta = 0.0; | 
