Another assertion that got changed wrongly.

I've read back through that patch, and everything else looks good.
This commit is contained in:
Richard Heck 2013-04-27 18:12:27 -04:00
parent d79225ae98
commit 76c96c22ac
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ Buffer const & Dialog::buffer() const
Buffer const & Dialog::documentBuffer() const
{
LAPPERR(lyxview_->currentBufferView());
LAPPERR(lyxview_->documentBufferView());
return lyxview_->documentBufferView()->buffer();
}

View File

@ -149,9 +149,9 @@ FileName GuiClipboard::getPastedGraphicsFileName(Cursor const & cur,
types.push_back(Clipboard::PngGraphicsType);
if (hasGraphicsContents(Clipboard::JpegGraphicsType))
types.push_back(Clipboard::JpegGraphicsType);
LASSERT(!types.empty(), return FileName());
// select prefered type if AnyGraphicsType was passed
if (type == Clipboard::AnyGraphicsType)
type = types.front();