diff --git a/src/gui/protein_view/proteinwindow.cpp b/src/gui/protein_view/proteinwindow.cpp index 95b88a02f5ad3f43c0ee196b1aae69a3c5768152..bc2ff2db77159e1750c36ba101407f29a5dbdc8b 100644 --- a/src/gui/protein_view/proteinwindow.cpp +++ b/src/gui/protein_view/proteinwindow.cpp @@ -184,7 +184,7 @@ QTextDocument *doc = ui->sequenceTextEdit->document()->clone(); QPainter *p = new QPainter(&generator); p->setRenderHint(QPainter::Antialiasing, true); - doc->drawContents(p,QRect(0, 0, size.width(), size.height())); + doc->drawContents(p); p->end();