aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-22 20:24:24 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-22 20:24:24 +1000
commit1eeadce64ec9d786c1da10e98f188a3221b7373b (patch)
tree660f0b845a8c0b745cc1f021cc4291bb14c30f44 /cocoa/PlatCocoa.mm
parentce8991b3f3b156ada52871052cc856201e1474de (diff)
downloadscintilla-mirror-1eeadce64ec9d786c1da10e98f188a3221b7373b.tar.gz
Restrict cursor changing to visible bounds so the text area cursor doesn't show
over other views above and below ScintillaView.
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index a0532efc3..5029947da 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -45,7 +45,7 @@ extern sptr_t scintilla_send_message(void* sci, unsigned int iMessage, uptr_t wP
/**
* Converts a PRectangle as used by Scintilla to standard Obj-C NSRect structure .
*/
-NSRect PRectangleToNSRect(PRectangle& rc)
+NSRect PRectangleToNSRect(const PRectangle& rc)
{
return NSMakeRect(rc.left, rc.top, rc.Width(), rc.Height());
}