[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/parley/src/entry-dialogs
From: Daniel Laidig <d.laidig () gmx ! de>
Date: 2010-05-17 18:30:44
Message-ID: 20100517183044.A0621AC8B8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1127834 by laidig:
more error checking in the latex widget
M +5 -1 latexwidget.cpp
--- trunk/KDE/kdeedu/parley/src/entry-dialogs/latexwidget.cpp #1127833:1127834
@@ -44,6 +44,8 @@
void LatexWidget::setTranslation(KEduVocExpression *entry, int translation)
{
+ previewLabel->clear();
+
if (entry) {
// we need to map the widgets relative to the translation (each translation \
has 9 columns) m_mapper->clearMapping();
@@ -51,7 +53,6 @@
m_mapper->addMapping(lineEdit,
VocabularyModel::EntryColumnsMAX * translation + \
VocabularyModel::Translation); m_translation = entry->translation(translation);
- previewLabel->clear();
updateLatex();
}
}
@@ -83,6 +84,9 @@
void LatexWidget::updateLatex()
{
+ if (!m_translation) {
+ return;
+ }
if (Practice::LatexRenderer::isLatex(m_translation->text())) {
if (!m_renderer) {
m_renderer = new Practice::LatexRenderer(this);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic