[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kchart/kdchart/src/Scenery
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2007-12-10 12:55:16
Message-ID: 1197291316.805351.361.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 746857 by jsimon:
Backport of KDChart fix in KDChart::ReverseMapper::addLine()
M +6 -0 ReverseMapper.cpp
--- trunk/koffice/kchart/kdchart/src/Scenery/ReverseMapper.cpp #746856:746857
@@ -136,6 +136,12 @@
void ReverseMapper::addLine( int row, int column, const QPointF& from, const QPointF& to )
{
+ // that's no line, dude... make a small circle around that point, instead
+ if( from == to )
+ {
+ addCircle( row, column, from, QSizeF( 1.5, 1.5 ) );
+ return;
+ }
// lines do not make good polygons to click on. we calculate a 2
// pixel wide rectangle, where the original line is excatly
// centered in.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic