mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Bug1300, improved: don't truncate the pasted string
This commit is contained in:
parent
bbd369df1b
commit
9036c00152
@ -630,10 +630,12 @@ int FileDialog::ShowModal()
|
|||||||
wxTheClipboard->GetData(data);
|
wxTheClipboard->GetData(data);
|
||||||
wxTheClipboard->Close();
|
wxTheClipboard->Close();
|
||||||
wxString text = data.GetText();
|
wxString text = data.GetText();
|
||||||
|
auto rawText = text.utf8_str();
|
||||||
|
auto length = text.Length();
|
||||||
NSString *myString = [[NSString alloc]
|
NSString *myString = [[NSString alloc]
|
||||||
initWithCharacters:
|
initWithBytes:rawText.data()
|
||||||
(unsigned short*)text.c_str().AsWChar()
|
length: rawText.length()
|
||||||
length:text.Length()
|
encoding: NSUTF8StringEncoding
|
||||||
];
|
];
|
||||||
[sPanel setNameFieldStringValue:myString];
|
[sPanel setNameFieldStringValue:myString];
|
||||||
[myString release];
|
[myString release];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user