From 07bda26192aff044a802a0c0b1640eb36d18d893 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 18 Jun 2016 16:27:15 -0400 Subject: [PATCH] fixed permission matrix widget crash --- retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp b/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp index 93110bb36..fe20584d8 100644 --- a/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp +++ b/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp @@ -450,7 +450,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *) // now display some info about current node. - if(n_row_selected < (int)peer_ids.size() && n_col_selected < (int)service_ids.size()) + if(n_row_selected >= 0 && n_col_selected >= 0 && n_row_selected < (int)peer_ids.size() && n_col_selected < (int)service_ids.size()) { QRect position = computeNodePosition(n_row_selected,n_col_selected,false) ;