Richard Heck wrote:
Stefan Schimanski wrote:
Hi!
Are the Document class modules broken right now?
When I create a new document with document class "article" and add
the "Theorems (AMS)" module and then leave the document dialog, I get
the message that "the module" does not exist.
I checked the reconfigure output and everything looks normal. It
finds plenty of AMS stuff.
Ideas?
I'll look at this as soon as I can, probably later today.
Well, the short answer is that, yes, this is broken, and I'm not sure
exactly why. The problem is that the ID string somehow isn't being set
correctly when modules are added to the "selected" list, as the silly
patch below will show. I'm not sure why this has broken, though.
rh
=================
Index: frontends/qt4/GuiDocument.cpp
===================================================================
--- frontends/qt4/GuiDocument.cpp (revision 24297)
+++ frontends/qt4/GuiDocument.cpp (working copy)
@@ -1574,8 +1574,10 @@
params.clearLayoutModules();
int const srows = modules_sel_model_.rowCount();
vector<string> selModList;
- for (int i = 0; i < srows; ++i)
+ for (int i = 0; i < srows; ++i) {
+ lyxerr << i << ": " << modules_sel_model_.getIDString(i) << std::endl;
params.addLayoutModule(modules_sel_model_.getIDString(i));
+ }
if (mathsModule->amsautoCB->isChecked()) {
params.use_amsmath = BufferParams::package_auto;