eirikbakke commented on a change in pull request #1278: [NETBEANS-2604] Support
SVG icon loading from ImageUtilities
URL: https://github.com/apache/netbeans/pull/1278#discussion_r289618107
##########
File path: platform/openide.util.ui/src/org/openide/util/ImageUtilities.java
##########
@@ -858,66 +1097,71 @@ public int getIconWidth() {
}
public void paintIcon(Component c, Graphics g, int x, int y) {
- g.drawImage(this, x, y, null);
+ if (delegateIcon != null) {
+ delegateIcon.paintIcon(c, g, x, y);
Review comment:
Yeah, saves us from changing 1674 calls to
ImageUtilities.loadImage/loadImageIcon!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists