1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

Calculator: Fix copy button not copying the fractional part bug :^)

This commit is contained in:
Musab Kılıç 2021-10-29 20:08:58 +03:00 committed by Andreas Kling
parent 8936d15efa
commit 2ef8cbe6cf

View file

@ -62,7 +62,7 @@ int main(int argc, char** argv)
if (clipboard.mime_type == "text/plain") {
if (!clipboard.data.is_empty()) {
auto data = atof(StringView(clipboard.data).to_string().characters());
widget.set_entry(data);
widget.set_entry(KeypadValue { data });
}
}
}));