Changeset 769 for trunk/src/gui/text/qtextdocument.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/text/qtextdocument.cpp
r651 r769 1632 1632 } 1633 1633 1634 extern int qt_defaultDpi();1634 Q_GUI_EXPORT extern int qt_defaultDpi(); 1635 1635 1636 1636 /*! … … 1680 1680 1681 1681 const QTextDocument *doc = this; 1682 Q TextDocument *clonedDoc = 0;1682 QScopedPointer<QTextDocument> clonedDoc; 1683 1683 (void)doc->documentLayout(); // make sure that there is a layout 1684 1684 … … 1713 1713 } else { 1714 1714 doc = clone(const_cast<QTextDocument *>(this)); 1715 clonedDoc = const_cast<QTextDocument *>(doc);1715 clonedDoc.reset(const_cast<QTextDocument *>(doc)); 1716 1716 1717 1717 for (QTextBlock srcBlock = firstBlock(), dstBlock = clonedDoc->firstBlock(); … … 1788 1788 if (printer->printerState() == QPrinter::Aborted 1789 1789 || printer->printerState() == QPrinter::Error) 1790 goto UserCanceled;1790 return; 1791 1791 printPage(page, &p, doc, body, pageNumberPos); 1792 1792 if (j < pageCopies - 1) … … 1808 1808 printer->newPage(); 1809 1809 } 1810 1811 UserCanceled:1812 delete clonedDoc;1813 1810 } 1814 1811 #endif
Note:
See TracChangeset
for help on using the changeset viewer.