[hg] main-silver: #226004: AssertionError at org.netbeans.module...

  • From: Jan Lahoda < >
  • To:
  • Subject: [hg] main-silver: #226004: AssertionError at org.netbeans.module...
  • Date: Fri, 15 Feb 2013 18:38:35 -0800

changeset ca30e896067e in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/ca30e896067e
description:
        #226004: AssertionError at 
org.netbeans.modules.editor.hints.borrowed.ListCompletionView.renderHtml

diffstat:

 
spi.editor.hints/src/org/netbeans/modules/editor/hints/borrowed/ListCompletionView.java
 |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff --git 
a/spi.editor.hints/src/org/netbeans/modules/editor/hints/borrowed/ListCompletionView.java
 
b/spi.editor.hints/src/org/netbeans/modules/editor/hints/borrowed/ListCompletionView.java
--- 
a/spi.editor.hints/src/org/netbeans/modules/editor/hints/borrowed/ListCompletionView.java
+++ 
b/spi.editor.hints/src/org/netbeans/modules/editor/hints/borrowed/ListCompletionView.java
@@ -394,13 +394,12 @@
         return AFTER_TEXT_GAP + subMenuIcon.getIconWidth() + 
AFTER_RIGHT_ICON_GAP;
     }
 
-    private static void renderHtml(Fix f, Graphics g, Font defaultFont, 
Color defaultColor,
+    private void renderHtml(Fix f, Graphics g, Font defaultFont, Color 
defaultColor,
     int width, int height, boolean selected) {
         if (icon != null) {
             // The image of the ImageIcon should already be loaded
             // so no ImageObserver should be necessary
-            boolean done = g.drawImage(ImageUtilities.icon2Image(icon), 
BEFORE_ICON_GAP, (height - icon.getIconHeight()) /2, null);
-            assert (done);
+            g.drawImage(ImageUtilities.icon2Image(icon), BEFORE_ICON_GAP, 
(height - icon.getIconHeight()) /2, this);
         }
         int iconWidth = BEFORE_ICON_GAP + icon.getIconWidth() + 
AFTER_ICON_GAP;
         int textEnd = width - AFTER_ICON_GAP - subMenuIcon.getIconWidth() - 
AFTER_TEXT_GAP;

[hg] main-silver: #226004: AssertionError at org.netbeans.module...

Jan Lahoda 02/16/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close