mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.developing rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@3702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a2584eb8dc
commit
57def18492
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue