mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 13:19:32 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -41,6 +41,7 @@ FileTransferInfoWidget::FileTransferInfoWidget(QWidget * parent, Qt::WFlags f )
|
||||||
{
|
{
|
||||||
QRect TaskGraphRect = geometry();
|
QRect TaskGraphRect = geometry();
|
||||||
maxWidth = TaskGraphRect.width();
|
maxWidth = TaskGraphRect.width();
|
||||||
|
maxHeight = 0;
|
||||||
pixmap = QPixmap(size());
|
pixmap = QPixmap(size());
|
||||||
pixmap.fill(this, 0, 0);
|
pixmap.fill(this, 0, 0);
|
||||||
|
|
||||||
|
@ -91,7 +92,6 @@ void FileTransferInfoWidget::updateDisplay()
|
||||||
|
|
||||||
draw(info,&painter) ;
|
draw(info,&painter) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
pixmap2 = pixmap;
|
pixmap2 = pixmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue