+2002-04-05 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * ControlGraphics.C (readBB): sigh. Make sure that the correct path is
+ used when reading the BB.
+
2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
* ControlGraphics.C (readBB): Don't open the ifstrem and then
// end of the file. Than we have in the header:
// %%BoundingBox: (atend)
// In this case we must check the end.
- string file_ = file;
+ string file_ = MakeAbsPath(file, lv_.buffer()->filePath());
if (zippedFile(file_))
- file_ = unzipFile(file_);
+ file_ = unzipFile(file_);
string const format = getExtFromContents(file_);
if (format != "eps" && format != "ps")
+2002-04-05 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * FormGraphics.C (updateBB, input): Don't set the path of the file
+ passed to readBB. Let the controller do that because it knows about
+ the buffer (and therefore the path) whereas the view has no idea.
+
2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
* xformsGImage.C (clip): ensure that the clipped image has sensible
controller().bbChanged = false;
if (bb_inset.empty()) {
lyxerr[Debug::GRAPHICS] << "update:: no BoundingBox" << endl;
- string const fileWithAbsPath =
- MakeAbsPath(filename, OnlyPath(filename));
- string const bb = controller().readBB(fileWithAbsPath);
+ string const bb = controller().readBB(filename);
if (!bb.empty()) {
// get the values from the file
// in this case we always have the point-unit
} else if (ob == bbox_->button_getBB) {
string const filename = getStringFromInput(file_->input_filename);
if (!filename.empty()) {
- string const fileWithAbsPath = MakeAbsPath(filename, OnlyPath(filename));
- string bb = controller().readBB(fileWithAbsPath);
+ string bb = controller().readBB(filename);
if (!bb.empty()) {
fl_set_input(bbox_->input_bb_x0, token(bb,' ',0).c_str());
fl_set_input(bbox_->input_bb_y0, token(bb,' ',1).c_str());