update getBase call for preview

This commit is contained in:
Damien Elmes 2010-01-20 02:13:19 +09:00
parent bdba8cea83
commit 30949edbc3

View file

@ -1107,7 +1107,7 @@ class PreviewDialog(QDialog):
"\ndiv { white-space: pre-wrap; }")
styles = runFilter("addStyles", styles, c)
self.dialog.webView.setHtml(
('<html><head>%s</head><body>' % getBase(self.deck)) +
('<html><head>%s</head><body>' % getBase(self.deck, c)) +
"<style>" + styles + "</style>" +
runFilter("drawQuestion", mungeQA(self.deck, c.htmlQuestion()),
c) +