Fix potential crash in displayconfig kcontrol module

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1257360 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 7c5dea76bf
commit 2ad77b9954

@ -849,7 +849,7 @@ void KDisplayConfig::identifyMonitors () {
randr_display = qt_xdisplay();
randr_screen_info = m_randrsimple->read_screen_info(randr_display);
for (i = 0; i < randr_screen_info->n_output; i++) {
for (i = 0; i < m_screenInfoArray.count(); i++) {
output_info = randr_screen_info->outputs[i]->info;
// Look for ON outputs...
if (!randr_screen_info->outputs[i]->cur_crtc) {

Loading…
Cancel
Save