New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in drag and drop #69
Comments
Should be now fixed (by removing Unicode__ functions completely). Thanks
for spotting this.
pá 8. 4. 2022 v 23:07 odesílatel kov-serg ***@***.***> napsal:
…
https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/Core/Defs.h#L157
typedef uint32 wchar;
https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/CtrlCore/CtrlClip.cpp#L118
String Unicode__(const WString& w)
{
return String((const char *)~w, 2 * w.GetLength());
}
—
Reply to this email directly, view it on GitHub
<#69>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARH235LHWGSNOUJKU2TXF3VECNZ5ANCNFSM5S5UQZEA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Did you check result? From wordpad text inserted without problem using drag and drop. But in reverse direction it paste trash. And from textedit itself paste trash. Problem is in inserting data into clip buffer. It insets it in utf8. ps: I found. This line
should looks like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/Core/Defs.h#L157
https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/CtrlCore/CtrlClip.cpp#L118
wchar is 4 bytes long so string will hold only one first characted.
How to reproduce. Create textedit type some text, select several letters and move it with mouse. It moves only first letter, rest will disappear.
ps:
https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/plugin/lz4/lib/lz4.c#L1348
should be replaced with
in order to work with gcc, or it fall's on aligment check nearby an cause segav
The text was updated successfully, but these errors were encountered: