/// clear the "Formatting Document" message
owner_->message("");
-
- /// get rid of the splash screen if it's not gone already
- owner_->getDialogs()->destroySplash();
-
+
return 0;
}
void BufferView::Pimpl::tripleClick(int /*x*/, int /*y*/, unsigned int button)
{
// select a line
- if (buffer_)
+ if (!buffer_)
return;
LyXText * text = bv_->getLyXText();
return;
}
+#ifdef WITH_WARNINGS
+#warning variable c is set but never used. What is it good for?? (JMarc)
+#endif
// check whether we want to open a float
if (bv_->text) {
bool hit = false;
if (text->inset_owner) {
text->inset_owner->setUpdateStatus(bv_, InsetText::NONE);
- updateInset(text->inset_owner, true);
+ updateInset(text->inset_owner, false);
} else {
update();
}
if (floatList.typeExist(argument)) {
insertAndEditInset(new InsetFloat(argument));
} else {
- lyxerr << "Non-existant float type: "
+ lyxerr << "Non-existent float type: "
<< argument << endl;
}
break;
else
delete new_inset;
} else {
- lyxerr << "Non-existant float type: "
+ lyxerr << "Non-existent float type: "
<< argument << endl;
}
string arg = argument;
if (arg.empty()) {
- arg = bv_->getLyXText()->selectionAsString(buffer_);
+ arg = bv_->getLyXText()->selectionAsString(buffer_,
+ false);
// FIXME
if (arg.size() > 100 || arg.empty()) {
// Get word or selection
bv_->getLyXText()->selectWordWhenUnderCursor(bv_, LyXText::WHOLE_WORD);
- arg = bv_->getLyXText()->selectionAsString(buffer_);
+ arg = bv_->getLyXText()->selectionAsString(buffer_, false);
// FIXME: where is getLyXText()->unselect(bv_) ?
}
}
InsetSpecialChar * new_inset =
new InsetSpecialChar(kind);
insertInset(new_inset);
+ // Ok, what happens here if we are unable to insert
+ // the inset? Leak it?
}
}