summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-05 00:17:11 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-05 00:17:11 +0000
commit2ad77b99549927ab066dca54f4179fc9487b82dd (patch)
tree21893f1278548ea90667f23bf6f4e56ed40f78e3
parent7c5dea76bf90caad177e1dd78991b699a3f58bd5 (diff)
downloadtdebase-2ad77b99549927ab066dca54f4179fc9487b82dd.tar.gz
tdebase-2ad77b99549927ab066dca54f4179fc9487b82dd.zip
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
-rw-r--r--kcontrol/displayconfig/displayconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kcontrol/displayconfig/displayconfig.cpp b/kcontrol/displayconfig/displayconfig.cpp
index b6b2b8a5e..831b078ce 100644
--- a/kcontrol/displayconfig/displayconfig.cpp
+++ b/kcontrol/displayconfig/displayconfig.cpp
@@ -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) {