fm: Fix weird test

ic is always true for this function, else dereference would fail. So the
only valid thing to check is whether we already have a drop_icon.

CID 1039829
This commit is contained in:
Sebastian Dransfeld 2014-03-24 13:20:25 +01:00
parent 81c384de9f
commit 2d9f5764a3
1 changed files with 1 additions and 2 deletions

View File

@ -6134,8 +6134,7 @@ _e_fm2_dnd_drop_show(E_Fm2_Icon *ic, int after)
if ((ic->sd->drop_icon == ic) &&
(ic->sd->drop_after == after)) return;
if (((ic->sd->drop_icon) && (!ic)) ||
((!ic->sd->drop_icon) && (ic)) ||
if (((!ic->sd->drop_icon)) ||
((after < 0) && (ic->sd->drop_after >= 0)) ||
((after >= 0) && (ic->sd->drop_after < 0)))
emit = 1;