diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-01 19:35:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-01 19:35:06 +0000 |
commit | 5efcb9fb4084eda4226e6a28747a0a7e130cfcc0 (patch) | |
tree | 221210f6fff42ea1dd4591263402b5317170e165 | |
parent | 95aea7e9407c6292651931aa51fcf17e034e80df (diff) | |
download | tdelibs-5efcb9fb4084eda4226e6a28747a0a7e130cfcc0.tar.gz tdelibs-5efcb9fb4084eda4226e6a28747a0a7e130cfcc0.zip |
Fix display gamma setting crash in kdelibs
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1250815 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | krandr/libkrandr.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc index 90049c13e..956328872 100644 --- a/krandr/libkrandr.cc +++ b/krandr/libkrandr.cc @@ -841,6 +841,9 @@ void KRandrSimpleAPI::applySystemwideDisplayGamma(TQPtrList<SingleScreenData> sc screendata = screenInfoArray.at(i); output_info = randr_screen_info->outputs[i]->info; CrtcInfo *current_crtc = randr_screen_info->outputs[i]->cur_crtc; + if (!current_crtc) { + continue; + } // vvvvvvvvv This chunk of code is borrowed from xrandr vvvvvvvvvv int size = XRRGetCrtcGammaSize(randr_display, current_crtc->id); if (!size) { |