diff options
Diffstat (limited to 'scribus/chartableview.cpp')
| -rw-r--r-- | scribus/chartableview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scribus/chartableview.cpp b/scribus/chartableview.cpp index bbc16eb..94497bf 100644 --- a/scribus/chartableview.cpp +++ b/scribus/chartableview.cpp @@ -77,7 +77,7 @@ void CharTableView::mousePressEvent(QMouseEvent* e) int index = currenCharactersIndex(); int currentChar = -1; - if (index < model()->characters().count()) + if ((index < model()->characters().count()) && (model()->characters().count() > 0)) currentChar = model()->characters()[index]; if (e->button() == Qt::RightButton && currentChar > -1) @@ -117,7 +117,7 @@ void CharTableView::mouseReleaseEvent(QMouseEvent* e) void CharTableView::viewDoubleClicked(const QModelIndex & /*index*/) { if (model()->characters().count() > currenCharactersIndex()) - emit selectChar(model()->characters()[currenCharactersIndex()]); + emit selectChar(model()->characters()[currenCharactersIndex()], model()->fonts()[currenCharactersIndex()]); } int CharTableView::currenCharactersIndex() |
