mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix typo
Found by gcc: operation on 'preview_ptr' may be undefined [-Wsequence-point]
This commit is contained in:
parent
ad8e7bb56f
commit
3602baa40c
@ -617,7 +617,7 @@ void InsetExternal::setParams(InsetExternalParams const & p)
|
|||||||
break;
|
break;
|
||||||
case PREVIEW_INSTANT: {
|
case PREVIEW_INSTANT: {
|
||||||
renderer_.reset(new RenderMonitoredPreview(this));
|
renderer_.reset(new RenderMonitoredPreview(this));
|
||||||
RenderMonitoredPreview * preview_ptr = preview_ptr = renderer_->asMonitoredPreview();
|
RenderMonitoredPreview * preview_ptr = renderer_->asMonitoredPreview();
|
||||||
preview_ptr->fileChanged(bind(&InsetExternal::fileChanged, this));
|
preview_ptr->fileChanged(bind(&InsetExternal::fileChanged, this));
|
||||||
if (preview_ptr->monitoring())
|
if (preview_ptr->monitoring())
|
||||||
preview_ptr->stopMonitoring();
|
preview_ptr->stopMonitoring();
|
||||||
|
Loading…
Reference in New Issue
Block a user