fix bug's (translation color in stardict and kept settings after leave)
[mdictionary] / src / mdictionary / gui / TranslationWidget.cpp
index 15859a3..7312d32 100644 (file)
@@ -85,9 +85,8 @@ void TranslationWidget::show(QStringList translations) {
            + trans + QString("\n </ar>");
 
     trans=checkTranslation(trans);
-    trans=XslConversion(trans);
-
     qDebug()<<"\n\n trans"<<trans;
+    trans=XslConversion(trans);
 
     QString head = "<html><head>";
     head += "<link rel=\"stylesheet\" type=\"text/css\" " ;
@@ -98,6 +97,7 @@ void TranslationWidget::show(QStringList translations) {
     trans+= "</body></html>";
     trans.replace("$STAR$", "/usr/share/mdictionary/staron.png");
 
+ //   qDebug()<<"\n\n trans"<<trans;
     webkit->setHtml(trans, QUrl().fromLocalFile("/"));
     //webkit->repaint(this->rect());
     //update(this->rect());