[Xfce4-commits] [xfce/xfdesktop] 02/02: Fix crash when moving 2+ icons to the bottom right corner
noreply at xfce.org
noreply at xfce.org
Sat Mar 7 18:37:02 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit 508a1b57c1353b9c9e1dd3122692e3789f00cc0c
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date: Thu Mar 5 12:13:26 2015 +0100
Fix crash when moving 2+ icons to the bottom right corner
---
src/xfdesktop-icon-view.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index b5248e8..224457d 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -1670,7 +1670,10 @@ xfdesktop_icon_view_drag_drop(GtkWidget *widget,
/* Find the next available spot for an icon */
do {
if(row + 1 >= icon_view->priv->nrows) {
- ++col;
+ if(col + 1 >= icon_view->priv->ncols)
+ col = 0;
+ else
+ ++col;
row = 0;
} else {
++row;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list