Skip to content
Snippets Groups Projects
Commit eac28d04 authored by Simon Barner's avatar Simon Barner
Browse files

- Work around the fact that on Linux/GTK the width is sometimes erroneously reported as 0

refs 2424
parent 62917302
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ import org.fortiss.tooling.base.ui.annotation.view.generic.filter.AnnotationFilt
* @author eder, diewald, barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 110B3CF77E247F35B410B0280A2EE66C
* @ConQAT.Rating YELLOW Hash: C9FDF2B4F6B786A69E79557656727299
*/
public class GenericAnnotationView extends AnnotationViewPartBase {
/** Root composite of {@link GenericAnnotationView}. */
......@@ -199,7 +199,11 @@ public class GenericAnnotationView extends AnnotationViewPartBase {
// hold the model elements' names and comments.
while(tableViewer.getTable().getColumnCount() > fixedColumnCount) {
TableColumn column = tableViewer.getTable().getColumn(fixedColumnCount);
columnWidthCache.put(column.getText(), column.getWidth());
int width = column.getWidth();
// Work around the fact that on GTK the width is sometimes erroneously reported as 0
if(width > 0) {
columnWidthCache.put(column.getText(), width);
}
column.dispose();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment