VirtualBox

Changeset 35798 in vbox


Ignore:
Timestamp:
Jan 31, 2011 6:09:28 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69774
Message:

FE/Qt4: use correct limits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMPreviewWindow.cpp

    r35795 r35798  
    9595    if (m_pGlossyImg)
    9696        delete m_pGlossyImg;
     97    if (m_pPreviewImg)
     98        delete m_pPreviewImg;
    9799}
    98100
     
    399401    /* Delete the old images */
    400402    if (m_pbgImage)
     403    {
    401404        delete m_pbgImage;
     405        m_pbgImage = 0;
     406    }
    402407    if (m_pGlossyImg)
     408    {
    403409        delete m_pGlossyImg;
     410        m_pGlossyImg = 0;
     411    }
    404412
    405413    /* Check that there is enough room for our fancy stuff. If not we just
    406      * draw nothing. */
     414     * draw nothing (the border and the blur radius). */
    407415    QRect cr = contentsRect();
    408     if (   cr.width()  < 30
    409         || cr.height() < 30)
     416    if (   cr.width()  < 41
     417        || cr.height() < 41)
    410418        return;
    411419
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette