[Libreoffice-commits] core.git: vcl/unx
Takeshi Abe
tabe at fixedpoint.jp
Tue Nov 10 03:47:43 PST 2015
vcl/unx/generic/app/saldisp.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit cec647c42a07091d946723cdf711aa3b56d0b6cf
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Sat Nov 7 21:41:33 2015 +0900
vcl: We see what you meant by DBG_ASSERT(true, ...)
This also makes SalColormap::GetColor() return an RGB color
if m_hColormap is valid.
Change-Id: I154dc43a2be54f7da473263f9f2a29db0cf2fd4b
Reviewed-on: https://gerrit.libreoffice.org/19836
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index b86fa37..49e00de 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -52,6 +52,7 @@
#include <vcl/settings.hxx>
#include <unx/salunx.h>
+#include <sal/log.hxx>
#include <sal/types.h>
#include "unx/i18n_im.hxx"
#include "unx/i18n_xkb.hxx"
@@ -1865,7 +1866,7 @@ int SalDisplay::CaptureMouse( SalFrame *pCapture )
if( ret != GrabSuccess )
{
- DBG_ASSERT( true, "SalDisplay::CaptureMouse could not grab pointer\n");
+ SAL_WARN("vcl", "SalDisplay::CaptureMouse could not grab pointer: " << ret);
return -1;
}
}
@@ -2744,9 +2745,9 @@ SalColor SalColormap::GetColor( Pixel nPixel ) const
if( !m_aPalette.empty() && nPixel < m_nUsed )
return m_aPalette[nPixel];
- if( m_hColormap )
+ if( !m_hColormap )
{
- DBG_ASSERT( true, "SalColormap::GetColor() !hColormap_\n" );
+ SAL_WARN("vcl", "SalColormap::GetColor() !m_hColormap");
return nPixel;
}
More information about the Libreoffice-commits
mailing list