BUG FIX for the Clipboard copy function

Batavo Silva <[email protected]> Tue, 20 Aug 2024 16:01:09 +0200
Newsgroups gmane.comp.web.dillo.devel
Message-ID <trinity-fb994db9-fad7-4d54-a20f-556dea0272b3-1724162469318@3c-app-mailcom-lxa08>
Hi Dillo devs!
Here is just a small bug fix for the Cipboard copy function. The 3rd argument passed for the Fl::copy() function should be 1 (not 0) for it to copy the input text to the clipboard buffer.

This issue is found at line 702 of file dillo/dw/fltkplatform.cc:
[code]
void FltkPlatform::copySelection(const char *text)
{
   Fl::copy(text, strlen(text), 0);  // wrong
}
[/code]

Change it to:
[code]
void FltkPlatform::copySelection(const char *text)
{
   Fl::copy(text, strlen(text), 1);
}
[/code]

Ref:
FLTK Documentation: https://www.fltk.org/doc-1.3/group__fl__clipboard.html#ga221bc2fa9bd737a8259a94a06f8005f0
 
_______________________________________________
Dillo-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]