summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Dumais2012-12-11 11:24:57 (EST)
committer William Swanson2012-12-11 13:35:06 (EST)
commitca6f6aa2aa33773cc9727be4f538ad339610b0f2 (patch)
treeac69dff8a94f929466d4bdb4410e9702b82dd98e
parent99699d2fd793cc0c5eff966223b3c5deab99887e (diff)
downloadorg.eclipse.cdt-ca6f6aa2aa33773cc9727be4f538ad339610b0f2.zip
org.eclipse.cdt-ca6f6aa2aa33773cc9727be4f538ad339610b0f2.tar.gz
org.eclipse.cdt-ca6f6aa2aa33773cc9727be4f538ad339610b0f2.tar.bz2
Bug 396293 - [Visualizer] right side cpu_margin not taken into accountrefs/changes/58/9158/4
when deciding if a new line of cores is needed Change-Id: I60eb0f138e1cfea9fd539cc52b83f51a7c300e67 Reviewed-on: https://git.eclipse.org/r/9158 Reviewed-by: William Swanson <traveler@tilera.com> IP-Clean: William Swanson <traveler@tilera.com> Tested-by: William Swanson <traveler@tilera.com>
-rwxr-xr-xdsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerCanvas.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerCanvas.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerCanvas.java
index 3a7eb59..291a5a9 100755
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerCanvas.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerCanvas.java
@@ -10,6 +10,7 @@
* Marc Dumais (Ericsson) - Bug 396076
* Marc Dumais (Ericsson) - Bug 396184
* Marc Dumais (Ericsson) - Bug 396200
+ * Marc Dumais (Ericsson) - Bug 396293
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
@@ -446,7 +447,7 @@ public class MulticoreVisualizerCanvas extends GraphicCanvas
core.setBounds(cx, cy, core_size, core_size);
cx += core_size + core_separation;
- if (cx + core_size > x + cpu_size) {
+ if (cx + core_size + core_margin > x + cpu_size) {
cx = left;
cy += core_size + core_separation;
}