mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Another assertion that got changed wrongly.
I've read back through that patch, and everything else looks good.
This commit is contained in:
parent
d79225ae98
commit
76c96c22ac
@ -125,7 +125,7 @@ Buffer const & Dialog::buffer() const
|
||||
|
||||
Buffer const & Dialog::documentBuffer() const
|
||||
{
|
||||
LAPPERR(lyxview_->currentBufferView());
|
||||
LAPPERR(lyxview_->documentBufferView());
|
||||
return lyxview_->documentBufferView()->buffer();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user