Skip to content

Commit

Permalink
Revert "Fix bug when there are more than 1 slide master."
Browse files Browse the repository at this point in the history
This reverts commit 64ca96d3616c175ac27efd295afb367f0a0163cd.
  • Loading branch information
yz41676578 committed Jun 24, 2014
1 parent ba003ef commit 16353a5
Show file tree
Hide file tree
Showing 2 changed files with 695 additions and 697 deletions.
Expand Up @@ -52,14 +52,14 @@ public class Presentation extends Component

private int slideMasterId = 1;
private int slideLayoutId = 1;
private int themeId = 1;

private long globalId = 2147483648L;

private int width = 0, height = 0;

private Package pkg;

private Theme theme;
private HashMap<String, SlideMaster> slideMasters = new HashMap<String, SlideMaster>();
private List<Slide> slides = new ArrayList<Slide>( );
private String author, title, description, subject;
Expand All @@ -79,6 +79,9 @@ public Presentation( OutputStream out, String tempFileDir,
{
writer = part.getCacheWriter( );
initialize( );
theme = new Theme( part );
//createSlideMaster( );
//slideMaster.referTo( theme );
}
catch ( IOException e )
{
Expand All @@ -93,7 +96,6 @@ public SlideMaster getSlideMaster( String name ) throws IOException

public SlideMaster createSlideMaster(String name, PageArea area) throws IOException
{
Theme theme = new Theme( part, this );
SlideMaster slideMaster = new SlideMaster( this, area );
slideMaster.referTo( theme );
slideMasters.put( name, slideMaster);
Expand Down Expand Up @@ -252,10 +254,6 @@ public int getNextSlideMasterId() {
return slideMasterId++;
}

public int getNextThemeId() {
return themeId++;
}

public int getNextSlideLayoutId() {
return slideLayoutId++;
}
Expand Down

0 comments on commit 16353a5

Please sign in to comment.