mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 05:44:29 -05:00
Uninitialised variable, lead to crash under MacOSX.
NB: The semantics of the updateDisplay function seem wrong... maxHeight, and hence pixmap size will always lag by a function call. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2353 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c692fba632
commit
f1a056dd93
@ -41,6 +41,7 @@ FileTransferInfoWidget::FileTransferInfoWidget(QWidget * parent, Qt::WFlags f )
|
||||
{
|
||||
QRect TaskGraphRect = geometry();
|
||||
maxWidth = TaskGraphRect.width();
|
||||
maxHeight = 0;
|
||||
pixmap = QPixmap(size());
|
||||
pixmap.fill(this, 0, 0);
|
||||
|
||||
@ -91,7 +92,6 @@ void FileTransferInfoWidget::updateDisplay()
|
||||
|
||||
draw(info,&painter) ;
|
||||
}
|
||||
|
||||
pixmap2 = pixmap;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user