[Uml-devel] [Bug 298655] Use Case View: Notes resized after print/print preview

Ralf Habacker ralf.habacker at gmail.com
Wed May 30 11:52:32 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=298655

Ralf Habacker <ralf.habacker at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |ralf.habacker at gmail.com
     Ever confirmed|0                           |1

--- Comment #3 from Ralf Habacker <ralf.habacker at gmail.com> ---
The problem is caused by the implementation of
UMLWidget::updateComponentSize(), which casts the widget size to the minimum
size of the widget. 

This is the related call stack: 
umbrello.exe!UMLWidget::updateComponentSize()  Zeile 1298    C++
umbrello.exe!UMLWidget::forceUpdateFontMetrics(QPainter * painter)  Zeile 1447 
  C++
umbrello.exe!UMLScene::forceUpdateWidgetFontMetrics(QPainter * painter)  Zeile
3885    C++
umbrello.exe!UMLScene::print(QPrinter * pPrinter, QPainter & pPainter)  Zeile
516    C++
umbrello.exe!UMLDoc::print(QPrinter * pPrinter, DiagramPrintPage * selectPage) 
Zeile 2570    C++
umbrello.exe!UMLApp::slotPrintPreviewPaintRequested(QPrinter * printer)  Zeile
1323    C++

I changed the implementation of updateComponentSize() to 
/**
 * Update the size of this widget.
 */
void UMLWidget::updateComponentSize()
{
    if (m_doc->loading())
        return;
-    QSize size = minimumSize();
-    setSize(size.width(), size.height());
+   clipSize();
    adjustAssocs(x(), y());    // adjust assoc lines
}

which is a workaround for this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.




More information about the umbrello-devel mailing list