Skip to content

Commit

Permalink
Revert "on windows, paste image from clipboard to take priority over …
Browse files Browse the repository at this point in the history
…html target containing image so that can work offline (#2303, work of @DaPa)" as it is not acceptable that paste from spreadsheet cells generates a picture instead of a table

This reverts commit 3eac022.
  • Loading branch information
giuspen committed Aug 11, 2023
1 parent a235545 commit 97f2242
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ct/ct_clipboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,6 @@ void CtClipboard::_paste_clipboard(Gtk::TextView* pTextView, CtCodebox* /*pCodeb
if (vec::exists(targets, CtConst::TARGET_CTD_TABLE))
return std::make_tuple(CtConst::TARGET_CTD_TABLE, received_table, false);
#if defined(_WIN32)
// on Windows, if the web clipboard is an image then paste it immediately (no html download needed)
if (is_rich_text) {
for (auto& target : CtConst::TARGETS_IMAGES)
if (vec::exists(targets, target))
return std::make_tuple(target, received_image, false);
}
if (vec::exists(targets, CtConst::TARGET_WIN_HTML))
return std::make_tuple(CtConst::TARGET_WIN_HTML, received_html, false);
#endif // _WIN32
Expand Down

0 comments on commit 97f2242

Please sign in to comment.