summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkh5325.kim <kh5325.kim@samsung.com>2012-11-28 17:05:07 +0900
committerkh5325.kim <kh5325.kim@samsung.com>2012-11-28 17:05:07 +0900
commit78b71370853e455041979034aa967565ef498ac4 (patch)
tree0a64bc0185a4556ecdd2f816306c19acba795f3d
parent00d0b9ab1ac00a15e2db56881121953c1d2e1404 (diff)
downloadcodecoverage-eplugin-78b71370853e455041979034aa967565ef498ac4.tar.gz
codecoverage-eplugin-78b71370853e455041979034aa967565ef498ac4.tar.bz2
codecoverage-eplugin-78b71370853e455041979034aa967565ef498ac4.zip
[Title] In code coverage, the chart view cannot be expanded if is saved as
XML source [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
-rw-r--r--org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/dataviewers/charts/actions/SaveXMLAction.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/dataviewers/charts/actions/SaveXMLAction.java b/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/dataviewers/charts/actions/SaveXMLAction.java
index a3c7ca0..aa36687 100644
--- a/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/dataviewers/charts/actions/SaveXMLAction.java
+++ b/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/dataviewers/charts/actions/SaveXMLAction.java
@@ -85,7 +85,8 @@ public class SaveXMLAction extends Action
serializer = SerializerImpl.instance( );
try
{
- serializer.write( cm, new FileOutputStream( file ) );
+ // FIXED: Cloned instance of cm object must be passed. Otherwise, the chart(cm object) does not be scaled by resize event.
+ serializer.write( cm.copyInstance(), new FileOutputStream( file ) );
IFile c = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(file.getAbsolutePath()));
if (c != null){
try {