Print the manufacturer and part number of the preset component in the bill of materials.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 20 Jun 2012 18:09:45 +0000 (18:09 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 20 Jun 2012 18:09:45 +0000 (18:09 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@795 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/gui/print/visitor/PartsDetailVisitorStrategy.java

index b123fe9d6a42277ba7b7a1523b2a3336eed7636e..c155d0cdef0ebc61b908ce2b0d1c529e96248518 100644 (file)
@@ -639,7 +639,9 @@ public class PartsDetailVisitorStrategy {
                 para.add(new Chunk(tab1));
             }
             c.setFont(PrintUtilities.SMALL);
-            c.append(preset.toString());
+            StringBuffer sb = new StringBuffer();
+            sb.append(preset.getManufacturer()).append(" ").append(preset.getPartNo());
+            c.append(sb.toString());
             para.add(c);
         }
         result.addElement(para);