Comment 3 for bug 1220230

Revision history for this message
LucaDC (lucadc) wrote :

For now I've just reinserted the two lines:

#define CLIPBOARD_WIN32_EMF_TARGET "CF_ENHMETAFILE"
#define CLIPBOARD_WIN32_EMF_MIME "image/x-emf"

and so I could compile.

I think that the right solution would be to copy the various strings in the correct places as the #defines are not applicable in the new code (in particular in the if with the or) and should be deleted.

On a side note, in the same file I've found this comment in function Glib::ustring ClipboardManagerImpl::_getBestTarget():

// If both bitmap and metafile are present, pick the one that was exported first.

Couldn't this be the source of the problem of when a bitmap paste is done also for a vectorial copied objects?
Instead of giving precedence to the first exported, shouldn't it be given to the metadata, if present?