Commit e54137b1 authored by Christopher Tenter's avatar Christopher Tenter

fix crash in renderobject widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19482 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 66a8fe75
......@@ -165,7 +165,7 @@ void TextBrowserWidget::sideAreaPaintEvent(QPaintEvent *event) {
bool TextBrowserWidget::getFold(int _position, Fold& _fold) {
std::map<int,size_t>::iterator it = blockPosToFold_.find(_position);
if (it != blockPosToFold_.end()) {
if (!folds_.empty() && it != blockPosToFold_.end()) {
_fold = folds_[it->second];
return true;
} else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment