From a335ee83d7e1006076c7e50629da693db8ac2862 Mon Sep 17 00:00:00 2001 From: fourthline Date: Sat, 3 May 2014 08:46:12 +0900 Subject: [PATCH] =?UTF-8?q?"=E7=B8=AE=E5=B0=8F=E8=A1=A8=E7=A4=BA=E6=99=82?= =?UTF-8?q?=E3=81=AB=E3=80=8164=E5=88=86=E9=9F=B3=E7=AC=A6=E3=81=8C?= =?UTF-8?q?=E9=9D=9E=E3=82=A2=E3=82=AF=E3=83=86=E3=82=A3=E3=83=96=E3=83=91?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=A7=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84"=20=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F.=20(line)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fourthline/mabiicco/ui/PianoRollView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fourthline/mabiicco/ui/PianoRollView.java b/src/fourthline/mabiicco/ui/PianoRollView.java index 39ab6ac4..5e0ee2af 100644 --- a/src/fourthline/mabiicco/ui/PianoRollView.java +++ b/src/fourthline/mabiicco/ui/PianoRollView.java @@ -395,7 +395,11 @@ private void drawNote(Graphics2D g, MMLNoteEvent noteEvent, Color rectColor, Col if (width > 1) width--; g.setColor(fillColor); - g.fillRect(x+1, y+1, width, height-1); + if (width != 0) { + g.fillRect(x+1, y+1, width, height-1); + } else { + g.drawLine(x+1, y+1, x+1, y+height-1); + } g.setColor(rectColor); g.drawLine(x+1, y+1, x+1, y+height-1); g.drawLine(x+width+1, y+height-1, x+width+1, y+1);