mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Amelioration de l'interface Fichier > Exporter
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@42 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -62,8 +62,8 @@ QPoint Element::setHotspot(QPoint hs) {
|
||||
if (dimensions.isNull()) hotspot_coord = QPoint(0, 0);
|
||||
else {
|
||||
// les coordonnees indiquees ne doivent pas depasser les dimensions de l'element
|
||||
int hsx = hs.x() > dimensions.width() ? dimensions.width() : hs.x();
|
||||
int hsy = hs.y() > dimensions.height() ? dimensions.height() : hs.y();
|
||||
int hsx = qMin(hs.x(), dimensions.width());
|
||||
int hsy = qMin(hs.y(), dimensions.height());
|
||||
hotspot_coord = QPoint(hsx, hsy);
|
||||
}
|
||||
return(hotspot_coord);
|
||||
|
||||
Reference in New Issue
Block a user