Boost in LyX
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sun Nov 22 16:05:44 UTC 2020
Le 21/11/2020 à 20:29, Yuriy Skalko a écrit :
>>
>> This is how the code is elsewhere. Do you use tab size == 4 ?
>
> Yes, 4 spaces, so the formatting below is right? As for me it is hard to
> separate condition from following statements.
>
> if (!current_view_
> || (!lyxrc.open_buffers_in_tabs
> && current_view_->documentBufferView() != 0
> && !is_open)) {
> // We want the ui session to be saved per document and not per
> // window number. The filename crc is a good enough identifier.
> createView(support::checksum(fname));
> current_view_->openDocument(fname);
>
Actually, it should be:
if (!current_view_
|| (!lyxrc.open_buffers_in_tabs
&& current_view_->documentBufferView() != 0
&& !is_open)) {
// We want the ui session to be saved per document and not per
// window number. The filename crc is a good enough identifier.
createView(support::checksum(fname));
current_view_->openDocument(fname);
But I see what you mean. The guy who invented this "if (" statement was
lame ;)
JMarc
More information about the lyx-devel
mailing list