diff -r 914f330b6aa8 -r 25a77484ec72 exports.cpp --- a/exports.cpp Thu Apr 02 09:57:47 2009 +0000 +++ b/exports.cpp Tue Apr 07 16:15:53 2009 +0000 @@ -149,7 +149,7 @@ BranchItem *prev=NULL; int d; - BranchObj *bo; + BranchObj *bo; //FIXME-3 still needed? cur=model->next (cur,prev,d); while (cur) { @@ -162,7 +162,7 @@ curIndent=""; for (i=0;idepth()-1;i++) curIndent+= indentPerDepth; - if (!bo->hasHiddenExportParent() ) + if (!cur->hasHiddenExportParent() ) { switch (cur->depth()) { @@ -230,7 +230,7 @@ QString s; QString curIndent(""); int i; - BranchObj *bo; + BranchObj *bo; //FIXME-3 still needed? BranchItem *cur=NULL; BranchItem *prev=NULL; int d; @@ -239,7 +239,7 @@ { bo=(BranchObj*)(cur->getLMO()); - if (!bo->hasHiddenExportParent() ) + if (!cur->hasHiddenExportParent() ) { // If necessary, write note if (!cur->getNoteObj().isEmpty()) @@ -393,31 +393,31 @@ BranchObj *bo; BranchItem *cur=NULL; BranchItem *prev=NULL; - int d; + int d; //FIXME-3 still needed? model->next(cur,prev,d); while (cur) { bo=(BranchObj*)(cur->getLMO()); - if (!bo->hasHiddenExportParent() ) + if (!cur->hasHiddenExportParent() ) { switch (cur->depth() ) { case 0: break; case 1: - ts << ("\\chapter{" + bo->getHeading()+ "}\n"); + ts << ("\\chapter{" + cur->getHeading()+ "}\n"); break; case 2: - ts << ("\\section{" + bo->getHeading()+ "}\n"); + ts << ("\\section{" + cur->getHeading()+ "}\n"); break; case 3: - ts << ("\\subsection{" + bo->getHeading()+ "}\n"); + ts << ("\\subsection{" + cur->getHeading()+ "}\n"); break; case 4: - ts << ("\\subsubsection{" + bo->getHeading()+ "}\n"); + ts << ("\\subsubsection{" + cur->getHeading()+ "}\n"); break; default: - ts << ("\\paragraph*{" + bo->getHeading()+ "}\n"); + ts << ("\\paragraph*{" + cur->getHeading()+ "}\n"); } // If necessary, write note