Angus Leeming wrote: > Of course I want to discuss something I don't understand. Now I understand > what you mean, I'll adjust your comment so that future readers will > understand it too. > > Incidentally, storing leftTop etc in the LyX file leads to this daft bit of > code in insetgraphics. > > if (!params().rotateOrigin.empty()) { > options << " origin=" << params().rotateOrigin[0]; > if (contains(params().rotateOrigin,"Top")) > options << 't'; > else if (contains(params().rotateOrigin,"Bottom")) > options << 'b'; > else if (contains(params().rotateOrigin,"Baseline")) > options << 'B'; > options << ",\n"; > } > > Sigh. Why didn't we just store lt, lb, lB etc?
I understand what you want to say, but this is the other way around. When I look into the lyxfile, than I know whats going there, real names, no abbreviations. ANd helping users to find problems is easier with "readable" code. Herbert -- http://www.lyx.org/help/