mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Fix exception when setting content to clipboard
This commit is contained in:
parent
f3d8e7588c
commit
800bb0ab38
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ void CopyPasteManager::CopyToClipboard(String ^ stringToCopy)
|
|||
// Copy the string to the clipboard
|
||||
auto dataPackage = ref new DataPackage();
|
||||
dataPackage->SetText(stringToCopy);
|
||||
Clipboard::SetContent(dataPackage);
|
||||
Clipboard::SetContentWithOptions(dataPackage, ref new ClipboardContentOptions());
|
||||
}
|
||||
|
||||
IAsyncOperation<String ^> ^ CopyPasteManager::GetStringToPaste(ViewMode mode, CategoryGroupType modeType, NumberBase programmerNumberBase, BitLength bitLengthType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue