Kaydet (Commit) e61e4e56 authored tarafından Noel Grandin's avatar Noel Grandin

clang-tidy readability-misleading-indentation

Change-Id: I4673fc7c694924b41d048a1918ddb8b0e0af1f79
Reviewed-on: https://gerrit.libreoffice.org/61935
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst ba80f637
......@@ -398,15 +398,15 @@ sal_Int32 SAL_CALL AccessibleGridControlBase::getForeground( )
{
if ( pInst->IsControlForeground() )
nColor = pInst->GetControlForeground();
else
{
vcl::Font aFont;
if ( pInst->IsControlFont() )
aFont = pInst->GetControlFont();
else
aFont = pInst->GetFont();
nColor = aFont.GetColor();
}
{
vcl::Font aFont;
if ( pInst->IsControlFont() )
aFont = pInst->GetControlFont();
else
aFont = pInst->GetFont();
nColor = aFont.GetColor();
}
}
return sal_Int32(nColor);
}
......@@ -422,7 +422,7 @@ sal_Int32 SAL_CALL AccessibleGridControlBase::getBackground( )
{
if ( pInst->IsControlBackground() )
nColor = pInst->GetControlBackground();
else
else
nColor = pInst->GetBackground().GetColor();
}
return sal_Int32(nColor);
......
......@@ -384,7 +384,7 @@ namespace accessibility
{
if( bHasButtons )
nCase = 2;
else
else
nCase = 3;
}
return nCase;
......
......@@ -385,7 +385,7 @@ namespace accessibility
{
if( bHasButtons )
nCase = 2;
else
else
nCase = 3;
}
return nCase;
......
......@@ -296,10 +296,9 @@ IMPL_LINK( MediaControl, implSelectHdl, ToolBox*, p, void )
if( p->GetCurItemId() == AVMEDIA_TOOLBOXITEM_OPEN )
{
OUString aURL;
if (MediaWindow::executeMediaURLDialog(GetFrameWeld(), aURL, nullptr))
{
if( !MediaWindow::isMediaURL( aURL, ""/*TODO?*/, true ) )
if (MediaWindow::executeMediaURLDialog(GetFrameWeld(), aURL, nullptr))
{
if( !MediaWindow::isMediaURL( aURL, ""/*TODO?*/, true ) )
MediaWindow::executeFormatErrorBox(GetFrameWeld());
else
{
......
......@@ -1415,97 +1415,97 @@ bool SbxValue::LoadData( SvStream& r, sal_uInt16 )
OUString aVal = read_uInt16_lenPrefixed_uInt8s_ToOUString(r,
RTL_TEXTENCODING_ASCII_US);
if( !aVal.isEmpty() )
aData.pOUString = new OUString( aVal );
else
aData.pOUString = nullptr; // JSM 1995-09-22
break;
}
case SbxERROR:
case SbxUSHORT:
r.ReadUInt16( aData.nUShort ); break;
case SbxOBJECT:
aData.pOUString = new OUString( aVal );
else
aData.pOUString = nullptr; // JSM 1995-09-22
break;
}
case SbxERROR:
case SbxUSHORT:
r.ReadUInt16( aData.nUShort ); break;
case SbxOBJECT:
{
sal_uInt8 nMode;
r.ReadUChar( nMode );
switch( nMode )
{
sal_uInt8 nMode;
r.ReadUChar( nMode );
switch( nMode )
{
case 0:
aData.pObj = nullptr;
break;
case 1:
aData.pObj = SbxBase::Load( r );
return ( aData.pObj != nullptr );
case 2:
aData.pObj = this;
break;
}
break;
case 0:
aData.pObj = nullptr;
break;
case 1:
aData.pObj = SbxBase::Load( r );
return ( aData.pObj != nullptr );
case 2:
aData.pObj = this;
break;
}
case SbxCHAR:
break;
}
case SbxCHAR:
{
char c;
r.ReadChar( c );
aData.nChar = c;
break;
}
case SbxBYTE:
r.ReadUChar( aData.nByte ); break;
case SbxULONG:
r.ReadUInt32( aData.nULong ); break;
case SbxINT:
{
sal_uInt8 n;
r.ReadUChar( n );
// Match the Int on this system?
if( n > SAL_TYPES_SIZEOFINT )
{
char c;
r.ReadChar( c );
aData.nChar = c;
break;
r.ReadInt32( aData.nLong );
aData.eType = SbxLONG;
}
case SbxBYTE:
r.ReadUChar( aData.nByte ); break;
case SbxULONG:
r.ReadUInt32( aData.nULong ); break;
case SbxINT:
{
sal_uInt8 n;
r.ReadUChar( n );
// Match the Int on this system?
if( n > SAL_TYPES_SIZEOFINT )
{
r.ReadInt32( aData.nLong );
aData.eType = SbxLONG;
}
else {
sal_Int32 nInt;
r.ReadInt32( nInt );
aData.nInt = nInt;
}
break;
else {
sal_Int32 nInt;
r.ReadInt32( nInt );
aData.nInt = nInt;
}
case SbxUINT:
break;
}
case SbxUINT:
{
sal_uInt8 n;
r.ReadUChar( n );
// Match the UInt on this system?
if( n > SAL_TYPES_SIZEOFINT )
{
sal_uInt8 n;
r.ReadUChar( n );
// Match the UInt on this system?
if( n > SAL_TYPES_SIZEOFINT )
{
r.ReadUInt32( aData.nULong );
aData.eType = SbxULONG;
}
else {
sal_uInt32 nUInt;
r.ReadUInt32( nUInt );
aData.nUInt = nUInt;
}
break;
r.ReadUInt32( aData.nULong );
aData.eType = SbxULONG;
}
case SbxEMPTY:
case SbxNULL:
case SbxVOID:
break;
case SbxDATAOBJECT:
r.ReadInt32( aData.nLong );
break;
// #78919 For backwards compatibility
case SbxWSTRING:
case SbxWCHAR:
break;
default:
aData.clear(SbxNULL);
ResetFlag(SbxFlagBits::Fixed);
SAL_WARN( "basic.sbx", "Loaded a non-supported data type" );
return false;
else {
sal_uInt32 nUInt;
r.ReadUInt32( nUInt );
aData.nUInt = nUInt;
}
break;
}
return true;
case SbxEMPTY:
case SbxNULL:
case SbxVOID:
break;
case SbxDATAOBJECT:
r.ReadInt32( aData.nLong );
break;
// #78919 For backwards compatibility
case SbxWSTRING:
case SbxWCHAR:
break;
default:
aData.clear(SbxNULL);
ResetFlag(SbxFlagBits::Fixed);
SAL_WARN( "basic.sbx", "Loaded a non-supported data type" );
return false;
}
return true;
}
bool SbxValue::StoreData( SvStream& r ) const
{
......
......@@ -1023,7 +1023,7 @@ sal_Bool SAL_CALL OEvoabResultSet::previous( )
m_nIndex--;
return true;
}
else
else
return false;
}
......
......@@ -876,8 +876,8 @@ OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType, OSQLParseNode* pLiteral)
case DataType::DATE:
case DataType::TIME:
case DataType::TIMESTAMP:
if ( m_xFormatter.is() )
pReturn = buildDate( nType, pReturn);
if ( m_xFormatter.is() )
pReturn = buildDate( nType, pReturn);
else
m_sErrorMessage = m_pContext->getErrorMessage(IParseContext::ErrorCode::InvalidDateCompare);
break;
......
......@@ -112,7 +112,7 @@ static bool readOption( OUString * pValue, const sal_Char * pOpt,
++(*pnIndex);
return true;
}
else if (aArg.indexOf(aOpt) == 1)
else if (aArg.indexOf(aOpt) == 1)
{
*pValue = aArg.copy(1 + aOpt.getLength());
SAL_INFO("cpputools.unoexe", "> identified option -" << pOpt << " = " << aArg);
......
......@@ -2115,7 +2115,7 @@ bool SvxCharEffectsPage::FillItemSet( SfxItemSet* rSet )
rSet->Put( aNewItem );
bModified = true;
}
else if ( SfxItemState::DEFAULT == rOldSet.GetItemState( nWhich, false ) )
else if ( SfxItemState::DEFAULT == rOldSet.GetItemState( nWhich, false ) )
rSet->InvalidateItem(nWhich);
bChanged = true;
......
......@@ -1402,9 +1402,9 @@ bool SvxNumberFormatTabPage::Click_Impl(weld::Button& rIB)
if ( nFmtLbSelPos != SELPOS_NONE )
{
if(bOneAreaFlag) //@@ ???
SetCategory(0);
else
SetCategory(nCatLbSelPos );
SetCategory(0);
else
SetCategory(nCatLbSelPos );
m_xLbFormat->select(static_cast<sal_uInt16>(nFmtLbSelPos));
m_xEdFormat->set_text( aFormat );
......
......@@ -3372,7 +3372,7 @@ void OQueryDesignView::fillFunctionInfo( const ::connectivity::OSQLParseNode* p
nDataType = DataType::FLOAT;
else if ( SQL_ISTOKEN(pCastTarget, REAL) )
nDataType = DataType::REAL;
else if ( SQL_ISTOKEN(pCastTarget, DOUBLE) )
else if ( SQL_ISTOKEN(pCastTarget, DOUBLE) )
nDataType = DataType::DOUBLE;
else if ( SQL_ISTOKEN(pCastTarget, BOOLEAN) )
nDataType = DataType::BOOLEAN;
......
......@@ -245,9 +245,8 @@ sal_Int8 OTableWindowListBox::AcceptDrop( const AcceptDropEvent& _rEvt )
ScrollUpHdl( nullptr );
}
}
// scroll down if the pointer is on the lower scroll area
else if( aTopScrollArea.IsInside(m_aMousePos) )
// scroll down if the pointer is on the lower scroll area
else if( aTopScrollArea.IsInside(m_aMousePos) )
{
if( !m_aScrollTimer.IsActive() )
{
......
......@@ -251,7 +251,7 @@ void CommandEnvironmentImpl::handle(
abort = false;
}
}
else if (request >>= instExc)
else if (request >>= instExc)
{
//Only if the unopgk was started with gui + extension then we user is asked.
//In console mode there is no asking.
......
......@@ -4238,7 +4238,7 @@ sal_uInt32 EscherGraphicProvider::GetBlibID( SvStream& rPicOutStrm, GraphicObjec
rPicOutStrm.WriteUInt32( 0x7f90000 | static_cast<sal_uInt16>( mvBlibEntrys.size() << 4 ) )
.WriteUInt32( 0 );
nAtomSize = rPicOutStrm.Tell();
if ( eBlibType == PNG )
if ( eBlibType == PNG )
rPicOutStrm.WriteUInt16( 0x0606 );
else if ( eBlibType == WMF )
rPicOutStrm.WriteUInt16( 0x0403 );
......
......@@ -530,7 +530,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
rFilterData[ nData ].Value >>= mnDefaultLinkAction;
else if ( rFilterData[ nData ].Name == "ConvertOOoTargetToPDFTarget" )
rFilterData[ nData ].Value >>= mbConvertOOoTargetToPDFTarget;
else if ( rFilterData[ nData ].Name == "ExportBookmarksToPDFDestination" )
else if ( rFilterData[ nData ].Name == "ExportBookmarksToPDFDestination" )
rFilterData[ nData ].Value >>= mbExportBmkToDest;
else if ( rFilterData[ nData ].Name == "ExportBookmarks" )
rFilterData[ nData ].Value >>= mbExportBookmarks;
......
......@@ -1258,8 +1258,8 @@ void XCUBasedAcceleratorConfiguration::reloadChanged( const OUString& sPrimarySe
aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD1;
else if ( sToken[i] == "MOD2" )
aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD2;
else if ( sToken[i] == "MOD3" )
aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD3;
else if ( sToken[i] == "MOD3" )
aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD3;
}
css::uno::Reference< css::container::XNameAccess > xKey;
......
......@@ -379,25 +379,25 @@ void SAL_CALL OReadStatusBarDocumentHandler::startElement(
aErrorMessage += "Required attribute statusbar:url must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
else
{
Sequence< PropertyValue > aStatusbarItemProp( 6 );
aStatusbarItemProp[0].Name = ITEM_DESCRIPTOR_COMMANDURL;
aStatusbarItemProp[1].Name = ITEM_DESCRIPTOR_HELPURL;
aStatusbarItemProp[2].Name = ITEM_DESCRIPTOR_OFFSET;
aStatusbarItemProp[3].Name = ITEM_DESCRIPTOR_STYLE;
aStatusbarItemProp[4].Name = ITEM_DESCRIPTOR_WIDTH;
aStatusbarItemProp[5].Name = ITEM_DESCRIPTOR_TYPE;
aStatusbarItemProp[0].Value <<= aCommandURL;
aStatusbarItemProp[1].Value <<= aHelpURL;
aStatusbarItemProp[2].Value <<= nOffset;
aStatusbarItemProp[3].Value <<= nItemBits;
aStatusbarItemProp[4].Value <<= nWidth;
aStatusbarItemProp[5].Value <<= css::ui::ItemType::DEFAULT;
m_aStatusBarItems->insertByIndex( m_aStatusBarItems->getCount(), makeAny( aStatusbarItemProp ) );
}
else
{
Sequence< PropertyValue > aStatusbarItemProp( 6 );
aStatusbarItemProp[0].Name = ITEM_DESCRIPTOR_COMMANDURL;
aStatusbarItemProp[1].Name = ITEM_DESCRIPTOR_HELPURL;
aStatusbarItemProp[2].Name = ITEM_DESCRIPTOR_OFFSET;
aStatusbarItemProp[3].Name = ITEM_DESCRIPTOR_STYLE;
aStatusbarItemProp[4].Name = ITEM_DESCRIPTOR_WIDTH;
aStatusbarItemProp[5].Name = ITEM_DESCRIPTOR_TYPE;
aStatusbarItemProp[0].Value <<= aCommandURL;
aStatusbarItemProp[1].Value <<= aHelpURL;
aStatusbarItemProp[2].Value <<= nOffset;
aStatusbarItemProp[3].Value <<= nItemBits;
aStatusbarItemProp[4].Value <<= nWidth;
aStatusbarItemProp[5].Value <<= css::ui::ItemType::DEFAULT;
m_aStatusBarItems->insertByIndex( m_aStatusBarItems->getCount(), makeAny( aStatusbarItemProp ) );
}
}
break;
......
......@@ -264,11 +264,11 @@ void SAL_CALL SessionListener::initialize(const Sequence< Any >& args)
void SAL_CALL SessionListener::statusChanged(const frame::FeatureStateEvent& event)
{
SAL_INFO("fwk.session", "SessionListener::statusChanged");
SAL_INFO("fwk.session", "SessionListener::statusChanged");
SAL_INFO("fwk.session.debug", " ev.Feature = " << event.FeatureURL.Complete <<
", ev.Descript = " << event.FeatureDescriptor);
if ( event.FeatureURL.Complete == "vnd.sun.star.autorecovery:/doSessionRestore" )
SAL_INFO("fwk.session.debug", " ev.Feature = " << event.FeatureURL.Complete <<
", ev.Descript = " << event.FeatureDescriptor);
if ( event.FeatureURL.Complete == "vnd.sun.star.autorecovery:/doSessionRestore" )
{
if (event.FeatureDescriptor == "update")
m_bRestored = true; // a document was restored
......
......@@ -895,13 +895,13 @@ int hcharconv(hchar ch, hchar *dest, int codeType)
if (ch < 128){
dest[0] = ch;
return 1;
}
}
if (IsHangul(ch))
{
hchar ch2 = ch;
hchar ch2 = ch;
if (codeType == KS)
ch = cdkssm2ks_han(ch);
else if( codeType == UNICODE ){
else if( codeType == UNICODE ){
if( ch2 == 0xd3c5 ){
dest[0] = 0xd55c;
return 1 ;
......@@ -909,8 +909,8 @@ int hcharconv(hchar ch, hchar *dest, int codeType)
int res = kssm_hangul_to_ucs2(ch, dest);
//printf("hcharconv Hangul[%04x]\n",dest[0]);
return res;
}
dest[0] = ch;
}
dest[0] = ch;
return 1;
}
/* Chinese characters have a value of 4888 kinds from 0x4000. */
......@@ -938,12 +938,12 @@ int hcharconv(hchar ch, hchar *dest, int codeType)
lo = sal::static_int_cast<unsigned char>(index % (0xFE - 0xA1 + 1) + 0xA1);
ch = (hi << 8) | lo;
}
else if(codeType == UNICODE){
else if(codeType == UNICODE){
hi = sal::static_int_cast<unsigned char>(index / (0xFE - 0xA1 + 1) + 0xCA);
lo = sal::static_int_cast<unsigned char>(index % (0xFE - 0xA1 + 1) + 0xA1);
ch = (hi << 8) | lo;
ch = ksc5601_han_to_ucs2(ch);
}
}
else
{
hi = sal::static_int_cast<unsigned char>(index / (0x100 - 0x31 - 0x11 - 2) + 0xE0);
......@@ -1321,7 +1321,7 @@ char *hcolor2str(uchar color, uchar shade, char *buf, bool bIsChar)
{
// nothing special here, just copy
}
else
else
{
unsigned int srclen = strlen(src);
if (3 < srclen)
......
......@@ -217,20 +217,20 @@ void HWPFile::ReadParaList(std::vector < HWPPara* > &aplist)
unsigned char prev_etcflag = 0;
while (spNode->Read(*this, 0))
{
if( !(spNode->etcflag & 0x04) ){
tmp_etcflag = spNode->etcflag;
spNode->etcflag = prev_etcflag;
prev_etcflag = tmp_etcflag;
}
if( !(spNode->etcflag & 0x04) ){
tmp_etcflag = spNode->etcflag;
spNode->etcflag = prev_etcflag;
prev_etcflag = tmp_etcflag;
}
if (spNode->nch && spNode->reuse_shape)
{
if (!aplist.empty()){
spNode->pshape = aplist.back()->pshape;
}
else{
spNode->nch = 0;
spNode->reuse_shape = 0;
}
spNode->pshape = aplist.back()->pshape;
}
else{
spNode->nch = 0;
spNode->reuse_shape = 0;
}
}
spNode->pshape->pagebreak = spNode->etcflag;
if (spNode->nch)
......@@ -258,12 +258,12 @@ void HWPFile::ReadParaList(std::vector< std::unique_ptr<HWPPara> > &aplist, unsi
if (spNode->nch && spNode->reuse_shape)
{
if (!aplist.empty()){
spNode->pshape = aplist.back()->pshape;
}
else{
spNode->nch = 0;
spNode->reuse_shape = 0;
}
spNode->pshape = aplist.back()->pshape;
}
else{
spNode->nch = 0;
spNode->reuse_shape = 0;
}
}
spNode->pshape->pagebreak = spNode->etcflag;
if (spNode->nch)
......
......@@ -1370,19 +1370,19 @@ void HwpReader::parseCharShape(CharShape const * cshape)
padd("fo:font-style", sXML_CDATA, "italic");
padd("style:font-style-asian", sXML_CDATA, "italic");
}
else{
else{
padd("fo:font-style", sXML_CDATA, "normal");
padd("style:font-style-asian", sXML_CDATA, "normal");
}
}
if (cshape->attr >> 1 & 0x01)
{
padd("fo:font-weight", sXML_CDATA, "bold");
padd("style:font-weight-asian", sXML_CDATA, "bold");
}
else{
else{
padd("fo:font-weight", sXML_CDATA, "normal");
padd("style:font-weight-asian", sXML_CDATA, "normal");
}
}
if (cshape->attr >> 2 & 0x01)
padd("style:text-underline", sXML_CDATA, "single");
if (cshape->attr >> 3 & 0x01)
......@@ -1463,7 +1463,7 @@ void HwpReader::parseParaShape(ParaShape const * pshape)
if( pshape->pagebreak & 0x02 || pshape->pagebreak & 0x04)
padd("fo:break-before", sXML_CDATA, "page");
else if( pshape->pagebreak & 0x01 )
else if( pshape->pagebreak & 0x01 )
padd("fo:break-before", sXML_CDATA, "column");
}
......@@ -3565,10 +3565,10 @@ void HwpReader::makeTextBox(TxtBox * hbox)
rstartEl("text:p", mxList.get());
mxList->clear();
}
else{
else{
padd("draw:z-index", sXML_CDATA,
ascii(Int2Str(hbox->zorder, "%d", buf)));
}
}
padd("draw:style-name", sXML_CDATA,
ascii(Int2Str(hbox->style.boxnum, "Txtbox%d", buf)));
......
......@@ -187,7 +187,7 @@ void CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
sTokenName = sToken.getToken(1, '<').getToken(0, '>').
getToken(0, ' ');
if ( !IsTokenClosed( sToken )) {
if ( !IsTokenClosed( sToken )) {
OString sSearch;
switch ( nToken ) {
case CFG_TOKEN_PACKAGE:
......
......@@ -84,9 +84,8 @@ int InitXrmExport( const char* pFilename)
if ( bMergeMode )
pParser = new XRMResMerge( sMergeSrc, sOutputFile, sFilename );
else if (!sOutputFile.isEmpty()) {
else if (!sOutputFile.isEmpty())
pParser = new XRMResExport( sOutputFile, sInputFileName );
}
return 1;
}
......
......@@ -1595,7 +1595,7 @@ void OWriteStream_Impl::CommitStreamRelInfo( const uno::Reference< embed::XStora
xPropSet->setPropertyValue("MediaType",
uno::makeAny( OUString("application/vnd.openxmlformats-package.relationships+xml" ) ) );
if ( m_nRelInfoStatus == RELINFO_CHANGED_STREAM )
if ( m_nRelInfoStatus == RELINFO_CHANGED_STREAM )
m_nRelInfoStatus = RELINFO_NO_INIT;
else
{
......
......@@ -1729,7 +1729,7 @@ void OStorage_Impl::CommitRelInfo( const uno::Reference< container::XNameContain
uno::makeAny( OUString( "application/vnd.openxmlformats-package.relationships+xml" ) ) );
m_xNewRelInfoStream.clear();
if ( m_nRelInfoStatus == RELINFO_CHANGED_STREAM )
if ( m_nRelInfoStatus == RELINFO_CHANGED_STREAM )
{
m_aRelInfo = uno::Sequence< uno::Sequence< beans::StringPair > >();
m_nRelInfoStatus = RELINFO_NO_INIT;
......
......@@ -1035,7 +1035,7 @@ bool openDialogFormula_nothrow( OUString& _in_out_rFormula
OUString sFormula = aDlg->getCurrentFormula();
if ( sFormula[0] == '=' )
_in_out_rFormula = "rpt:" + sFormula.copy(1);
else
else
_in_out_rFormula = "rpt:" + sFormula;
}
}
......
......@@ -105,7 +105,6 @@ void StopWatch::stop()
// pre: Timer should be started
// post: Timer will stopped
// gettimeofday(&t2, 0); // Ask timer
osl_getSystemTime( &t2 );
t_print("# %u %u nsecs\n", static_cast<unsigned>(t2.Seconds), static_cast<unsigned>(t2.Nanosec));
......@@ -113,18 +112,13 @@ void StopWatch::stop()
{ // check if started.
m_nSeconds = static_cast<sal_Int32>(t2.Seconds) - static_cast<sal_Int32>(t1.Seconds);
if ( t2.Nanosec > t1.Nanosec )
m_nNanoSec = static_cast<sal_Int32>(t2.Nanosec) - static_cast<sal_Int32>(t1.Nanosec);
else
{
m_nNanoSec = 1000000000 + static_cast<sal_Int32>(t2.Nanosec) - static_cast<sal_Int32>(t1.Nanosec);
m_nSeconds -= 1;
}
t_print("# %u %u nsecs\n", static_cast<unsigned>(m_nSeconds), static_cast<unsigned>(m_nNanoSec) );
//if (m_nNanoSec < 0)
//{
//m_nNanoSec += 1000000000;
//m_nSeconds -= 1;
//}
m_nNanoSec = static_cast<sal_Int32>(t2.Nanosec) - static_cast<sal_Int32>(t1.Nanosec);
else
{
m_nNanoSec = 1000000000 + static_cast<sal_Int32>(t2.Nanosec) - static_cast<sal_Int32>(t1.Nanosec);
m_nSeconds -= 1;
}
t_print("# %u %u nsecs\n", static_cast<unsigned>(m_nSeconds), static_cast<unsigned>(m_nNanoSec) );
m_bIsValid = true;
m_bIsRunning = false;
}
......
......@@ -256,7 +256,7 @@ void ScDPOutputImpl::OutputBlockFrame ( SCCOL nStartCol, SCROW nStartRow, SCCOL
else
aBox.SetLine(&aLine, SvxBoxItemLine::RIGHT);
if ( nEndRow == mnTabEndRow ) //bottom
if ( nEndRow == mnTabEndRow ) //bottom
aBox.SetLine(&aOutLine, SvxBoxItemLine::BOTTOM);
else