File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,14 +142,11 @@ void TextParser::ParseStringToken<STT_SetLeftMargin>(const StringToken& token) {
142142
143143template <>
144144void TextParser::ParseStringToken<STT_UnlockTip>(const StringToken& token) {
145- if ((PageMode == DPM_ADV ||
146- (ScrWork[SW_MESWIN0TYPE] == 1 && PageMode == DPM_REV) ||
147- PageMode == DPM_NVL) &&
148- TipsSystem::GetTipLockedState (token.Val_Uint16 )) {
149- TipsSystem::SetTipLockedState (token.Val_Uint16 , false );
150- TipsNotification::AddTip (token.Val_Uint16 );
151- TipsSystem::GetNewTipsIndices ().push_back (token.Val_Uint16 );
152- }
145+ if (!TipsSystem::GetTipLockedState (token.Val_Uint16 )) return ;
146+
147+ TipsSystem::SetTipLockedState (token.Val_Uint16 , false );
148+ TipsNotification::AddTip (token.Val_Uint16 );
149+ TipsSystem::GetNewTipsIndices ().push_back (token.Val_Uint16 );
153150}
154151
155152template <>
You can’t perform that action at this time.
0 commit comments