diff options
| author | Michael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com> | 2016-10-06 18:59:18 +0200 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2016-11-17 23:05:13 +1100 |
| commit | c57d92c7c443593c89d2033abe2dc9a3b7431d91 (patch) | |
| tree | 97a99472fb78104f6dfb6b55f95bf94121ae053c /dev-util/codeblocks/files/codeblocks-10.05-wxChartCtrl-crash.patch | |
| parent | a1981b7df079bbcdb71d669667b0b148c25581ba (diff) | |
| download | gentoo-c57d92c7c443593c89d2033abe2dc9a3b7431d91.tar.gz gentoo-c57d92c7c443593c89d2033abe2dc9a3b7431d91.tar.bz2 gentoo-c57d92c7c443593c89d2033abe2dc9a3b7431d91.zip | |
dev-util/codeblocks: remove unused patches
Diffstat (limited to 'dev-util/codeblocks/files/codeblocks-10.05-wxChartCtrl-crash.patch')
| -rw-r--r-- | dev-util/codeblocks/files/codeblocks-10.05-wxChartCtrl-crash.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/dev-util/codeblocks/files/codeblocks-10.05-wxChartCtrl-crash.patch b/dev-util/codeblocks/files/codeblocks-10.05-wxChartCtrl-crash.patch deleted file mode 100644 index af95ac2ca2b2..000000000000 --- a/dev-util/codeblocks/files/codeblocks-10.05-wxChartCtrl-crash.patch +++ /dev/null @@ -1,34 +0,0 @@ -codeblocks crashes when a wxChartCtrl is added with wxSmith - -https://bugs.gentoo.org/show_bug.cgi?id=372837 -https://developer.berlios.de/bugs/?func=detailbug&bug_id=18182&group_id=5358 - - ---- a/src/plugins/contrib/wxSmithContribItems/wxchart/wxchart-1.0/src/chartwindow.cpp -+++ b/src/plugins/contrib/wxSmithContribItems/wxchart/wxchart-1.0/src/chartwindow.cpp -@@ -156,7 +156,13 @@ void wxChartWindow::DrawHLines( - } - - wxChartSizes *sizes = GetSizes(); -- -+ -+ // sizes may be NULL, in this case do nothing -+ // not sure if this is the right way to do things -+ // gw.fossdev@gmail.com -+ if (!sizes) -+ return; -+ - hp->SetPen( *wxBLACK_DASHED_PEN ); - - double current = lower; -@@ -188,6 +194,10 @@ ChartValue wxChartWindow::GetVirtualWidth() const - int iNodes = static_cast<int>(ceil( GetVirtualMaxX() )); - wxChartSizes *sizes = GetSizes(); - -+ /// sizes may be NULL, in this case return a fixes value -+ if (!sizes) -+ return 1; -+ - ChartValue x = 0; - - for ( int iNode = 0; iNode <= iNodes; ++ iNode ) |
