mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 16:09:37 -05:00
fixed permission matrix widget crash
This commit is contained in:
parent
35da9cb193
commit
07bda26192
@ -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) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user