.developing rainbow

git-svn-id: svn://ultimatepp.org/upp/trunk@3702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-07-22 16:07:57 +00:00
parent a2584eb8dc
commit 57def18492
2 changed files with 3 additions and 2 deletions

View file

@ -61,7 +61,7 @@ bool PasteClip::Accept(const char *_fmt)
{
Vector<String> f = Split(_fmt, ';');
for(int i = 0; i < f.GetCount(); i++) {
if(IsAccepted() && fmt == _fmt)
if(IsAccepted() && fmt == f[i])
return paste;
if(IsAvailable(f[i])) {
accepted = true;

View file

@ -124,7 +124,8 @@ void RichEdit::DragAndDrop(Point p, PasteClip& d)
return;
}
}
if(!d.IsAccepted()) dropcursor = -1;
if(!d.IsAccepted())
dropcursor = -1;
Rect r = Null;
if(dropcursor >= 0 && dropcursor < text.GetLength()) {
RichCaret pr = text.GetCaret(dropcursor, pagesz);