Error copying image with bitmap select tool

Bug #786606 reported by Steven Sproat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Whyteboard
Fix Committed
Medium
Steven Sproat

Bug Description

Whyteboard 0.41.1
Operating System: Windows Vista (build 6002, Service Pack 2)
Screen Resolution: 1280x800
Python Version: 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
wxPython Version: 2.8.10.1 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii File=mbcs
wxPython Encoding: utf-8
System Architecture: 32bit x86
Byte order: little
Frozen: windows_exe

 File \"whyteboard\\gui\\frame.pyo\", line 768, in on_copy
 File \"whyteboard\\gui\\canvas.pyo\", line 687, in get_selection_bitmap
 File \"wx\\_gdi.pyo\", line 659, in GetSubBitmap
PyAssertionError: C++ assertion \"Ok() && (rect.x >= 0) && (rect.y >= 0) && (rect.x+rect.width <= GetWidth()) && (rect.y+rect.height <= GetHeight())\" failed at ..\\..\\src\\msw\\bitmap.cpp(1089) in wxBitmap::GetSubBitmapOfHDC(): Invalid bitmap or bitmap region

I think I done this the other day too by somehow selecting outside of the canvas region. I thought I had code in place to guard against this. Hmm.

Tags: crash tools

Related branches

Steven Sproat (sproaty)
Changed in whyteboard:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.